1 viewer
rust 1,847,276 · typescript 232,434 · javascript 131,064 · python 19,227 · 6,362 files · digest fa0546eddd29 · built in 1.5 s · crystals off
crates/cre8-app-social/src/publish/tests.rs
Items
const NOW const ATOM const EXPORT const TOKEN const SESSION struct Call impl Call struct FakeTransport impl FakeTransport impl FakeTransport impl UploadTransport for FakeTransport impl GraphTransport for FakeTransport const IG_USER_ID const TIKTOK_UPLOAD_URL const IG_CONTAINER const IG_MEDIA const RUPLOAD const PERMALINK const CLIP_ID struct FakeChannel impl FakeChannel
Functions
By call-graph weight (PageRank; 1.0 is the average function). 74 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| answeredsrc/publish/tests.rs:136 | fn | 3 | 1 | 8 | 0 | 4.5 | |
| requestsrc/publish/tests.rs:192 | fn | 16 | 3 | 12 | 1 | 2.7 | |
| contextsrc/publish/tests.rs:209 | fn | 3 | 1 | 25 | 1 | 1.9 | |
| cleanupsrc/publish/tests.rs:213 | fn | 3 | 1 | 25 | 0 | 1.9 | |
| depssrc/publish/tests.rs:180 | fn | 11 | 1 | 21 | 5 | 1.8 | |
| tiktok_oksrc/publish/tests.rs:484 | fn | 3 | 1 | 7 | 1 | 1.4 | |
| FakeTransport::graph_callsrc/publish/tests.rs:92 | method | 12 | 1 | 2 | 1 | 1.3 | |
| video_bytessrc/publish/tests.rs:144 | fn | 5 | 1 | 3 | 0 | 1.3 | |
| startedsrc/publish/tests.rs:132 | fn | 3 | 1 | 9 | 0 | 0.9 | |
| video_resourcesrc/publish/tests.rs:140 | fn | 3 | 1 | 9 | 1 | 0.9 | |
| instagram_requestsrc/publish/tests.rs:718 | fn | 9 | 3 | 6 | 1 | 0.9 | |
| FakeTransport::youtubesrc/publish/tests.rs:66 | method | 3 | 1 | 8 | 0 | 0.9 | |
| exportsrc/publish/tests.rs:150 | fn | 4 | 1 | 1 | 1 | 0.8 | |
| tokensrc/publish/tests.rs:159 | fn | 10 | 3 | 1 | 2 | 0.8 | |
| clocksrc/publish/tests.rs:170 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| no_sleepsrc/publish/tests.rs:174 | fn | 1 | 1 | 1 | 0 | 0.8 | |
| no_dispatchsrc/publish/tests.rs:176 | fn | 3 | 1 | 1 | 0 | 0.8 | |
| chunk_answersrc/publish/tests.rs:492 | fn | 3 | 1 | 6 | 0 | 0.8 | |
| ig_statussrc/publish/tests.rs:700 | fn | 3 | 1 | 5 | 1 | 0.7 | |
| instagram_fakesrc/publish/tests.rs:705 | fn | 8 | 1 | 5 | 1 | 0.7 | |
| tiktok_fakesrc/publish/tests.rs:497 | fn | 6 | 1 | 5 | 0 | 0.7 | |
| tiktok_initsrc/publish/tests.rs:488 | fn | 3 | 1 | 5 | 1 | 0.7 | |
| storedsrc/publish/tests.rs:217 | fn | 3 | 1 | 5 | 2 | 0.7 | |
| FakeChannel::acceptingsrc/publish/tests.rs:860 | method | 4 | 1 | 3 | 0 | 0.7 | |
| signed_insrc/publish/tests.rs:879 | fn | 5 | 1 | 3 | 1 | 0.7 | |
| cre8_requestsrc/publish/tests.rs:885 | fn | 9 | 3 | 3 | 1 | 0.7 | |
| publish_to_cre8src/publish/tests.rs:895 | fn | 9 | 1 | 3 | 2 | 0.7 | |
| container_createdsrc/publish/tests.rs:714 | fn | 3 | 1 | 4 | 1 | 0.7 | |
| tiktok_requestsrc/publish/tests.rs:504 | fn | 9 | 3 | 4 | 1 | 0.7 | |
| Call::headersrc/publish/tests.rs:41 | method | 3 | 1 | 0 | 0 | 0.5 | |
| Call::fieldsrc/publish/tests.rs:45 | method | 3 | 1 | 0 | 0 | 0.5 | |
| FakeTransport::onsrc/publish/tests.rs:60 | method | 4 | 1 | 0 | 0 | 0.5 | |
| FakeTransport::callssrc/publish/tests.rs:70 | method | 3 | 1 | 0 | 0 | 0.5 | |
| FakeTransport::answersrc/publish/tests.rs:76 | method | 15 | 3 | 0 | 0 | 0.5 | |
| FakeTransport::sendsrc/publish/tests.rs:107 | trait impl | 11 | 1 | 0 | 2 | 0.5 | |
| FakeTransport::getsrc/publish/tests.rs:123 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| FakeTransport::post_formsrc/publish/tests.rs:127 | trait impl | 3 | 1 | 0 | 1 | 0.5 | |
| top_level_fields_make_one_private_targetsrc/publish/tests.rs:224 | fn | 9 | 2 | 0 | 1 | 0.5 | |
| targets_inherit_top_level_fields_and_may_not_repeat_an_accountsrc/publish/tests.rs:235 | fn | 20 | 1 | 0 | 1 | 0.5 | |
| malformed_requests_are_refusedsrc/publish/tests.rs:257 | fn | 14 | 1 | 0 | 1 | 0.5 | |
| youtube_rules_are_checked_before_anything_is_readsrc/publish/tests.rs:273 | fn | 17 | 1 | 0 | 1 | 0.5 | |
| an_instagram_target_must_say_public_before_anything_is_readsrc/publish/tests.rs:292 | fn | 12 | 1 | 0 | 5 | 0.5 | |
| a_title_is_required_where_the_platform_takes_onesrc/publish/tests.rs:306 | fn | 12 | 1 | 0 | 6 | 0.5 | |
| a_clip_uploads_through_the_resumable_protocol_and_is_recordedsrc/publish/tests.rs:322 | fn | 40 | 2 | 0 | 10 | 0.5 | |
| a_published_clip_is_not_posted_twice_unless_askedsrc/publish/tests.rs:364 | fn | 19 | 1 | 0 | 10 | 0.5 | |
| a_dry_run_asks_for_the_token_records_and_sends_nothingsrc/publish/tests.rs:385 | fn | 15 | 1 | 0 | 8 | 0.5 | |
| an_account_the_caller_does_not_hold_is_refused_before_any_uploadsrc/publish/tests.rs:402 | fn | 13 | 1 | 0 | 11 | 0.5 | |
| a_refused_upload_is_recorded_as_failed_and_may_be_tried_againsrc/publish/tests.rs:417 | fn | 21 | 1 | 0 | 10 | 0.5 | |
| a_session_uri_off_googles_upload_host_never_gets_the_tokensrc/publish/tests.rs:440 | fn | 12 | 1 | 0 | 8 | 0.5 | |
| a_public_upload_carries_the_audit_notesrc/publish/tests.rs:454 | fn | 8 | 1 | 0 | 8 | 0.5 | |
| publications_list_newest_first_and_filter_by_accountsrc/publish/tests.rs:464 | fn | 15 | 1 | 0 | 9 | 0.5 | |
| chunk_plans_follow_tiktoks_layoutsrc/publish/tests.rs:515 | fn | 14 | 1 | 0 | 1 | 0.5 | |
| a_lane_connected_tiktok_account_answers_only_an_operatorsrc/publish/tests.rs:531 | fn | 11 | 1 | 0 | 4 | 0.5 | |
| an_upload_url_must_be_https_on_tiktoks_api_domainsrc/publish/tests.rs:544 | fn | 12 | 2 | 0 | 1 | 0.5 | |
| a_draft_goes_up_in_ranged_chunks_without_the_tokensrc/publish/tests.rs:558 | fn | 34 | 1 | 0 | 7 | 0.5 | |
| a_tiktok_target_lands_in_drafts_and_is_not_sent_twicesrc/publish/tests.rs:594 | fn | 26 | 1 | 0 | 10 | 0.5 | |
| one_request_can_post_to_youtube_and_draft_to_tiktoksrc/publish/tests.rs:622 | fn | 22 | 1 | 0 | 10 | 0.5 | |
| tiktok_refusals_are_recorded_as_failed_with_tiktoks_codesrc/publish/tests.rs:646 | fn | 15 | 1 | 0 | 9 | 0.5 | |
| an_upload_url_off_tiktoks_domain_gets_no_videosrc/publish/tests.rs:663 | fn | 14 | 1 | 0 | 9 | 0.5 | |
| a_draft_tiktok_failed_in_processing_is_a_failuresrc/publish/tests.rs:679 | fn | 13 | 1 | 0 | 9 | 0.5 | |
| an_instagram_caption_is_title_description_and_hashtagssrc/publish/tests.rs:729 | fn | 12 | 1 | 0 | 3 | 0.5 | |
| an_upload_uri_must_be_https_on_metas_hostssrc/publish/tests.rs:743 | fn | 11 | 2 | 0 | 1 | 0.5 | |
| a_reel_uploads_resumably_waits_for_processing_and_publishessrc/publish/tests.rs:756 | fn | 37 | 1 | 0 | 10 | 0.5 | |
| a_container_meta_rejects_is_a_failure_and_nothing_is_publishedsrc/publish/tests.rs:795 | fn | 10 | 1 | 0 | 8 | 0.5 | |
| a_reel_still_processing_after_the_last_read_fails_and_names_the_containersrc/publish/tests.rs:807 | fn | 12 | 2 | 0 | 8 | 0.5 | |
| an_upload_uri_off_metas_hosts_gets_neither_token_nor_videosrc/publish/tests.rs:821 | fn | 10 | 1 | 0 | 8 | 0.5 | |
| a_graph_refusal_on_the_container_carries_metas_codesrc/publish/tests.rs:833 | fn | 14 | 1 | 0 | 8 | 0.5 | |
| FakeChannel::dispatchsrc/publish/tests.rs:865 | method | 8 | 3 | 0 | 0 | 0.5 | |
| FakeChannel::callssrc/publish/tests.rs:874 | method | 3 | 1 | 0 | 0 | 0.5 | |
| a_public_cre8_target_imports_the_source_clip_and_publishes_itsrc/publish/tests.rs:906 | fn | 23 | 1 | 0 | 6 | 0.5 | |
| a_private_cre8_target_imports_without_publishingsrc/publish/tests.rs:931 | fn | 11 | 1 | 0 | 6 | 0.5 | |
| a_cre8_target_needs_a_signed_in_caller_and_reports_channels_refusalsrc/publish/tests.rs:944 | fn | 19 | 1 | 0 | 6 | 0.5 | |
| a_cre8_account_is_a_channel_idsrc/publish/tests.rs:965 | fn | 13 | 3 | 0 | 2 | 0.5 | |
| a_lane_connected_instagram_account_answers_only_an_operatorsrc/publish/tests.rs:980 | fn | 9 | 1 | 0 | 4 | 0.5 |
Source not readable from this process.