1 viewer
rust 1,849,384 · typescript 232,426 · javascript 131,078 · python 19,227 · 6,366 files · digest 815dcbacab85 · built in 1.4 s · crystals off
crates/cre8-app-compute/src/git_provider.rs
Items
const ENTRY_POINT_CANDIDATES const LANGUAGE_EXTENSIONS const LANGUAGE_EXTENSION_PATTERNS const MANIFEST_LANGUAGE_MARKERS struct GitSpecifier struct GitProvider impl GitProvider impl PackageProvider for GitProvider const SOURCE_EXTENSIONS
Functions
By call-graph weight (PageRank; 1.0 is the average function). 68 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| parse_git_specifiersrc/git_provider.rs:237 | fn | 25 | 4 | 13 | 1 | 5.6 | |
| parse_user_repo_refsrc/git_provider.rs:295 | fn | 11 | 2 | 1 | 3 | 5.3 | |
| detect_languagesrc/git_provider.rs:445 | fn | 7 | 2 | 10 | 2 | 4.4 | |
| detect_entry_pointsrc/git_provider.rs:484 | fn | 16 | 5 | 10 | 4 | 4.4 | |
| language_from_extensionsrc/git_provider.rs:472 | fn | 6 | 1 | 3 | 0 | 3.3 | |
| GitProvider::newsrc/git_provider.rs:101 | method | 6 | 1 | 6 | 0 | 3 | |
| manifest_languagesrc/git_provider.rs:453 | fn | 5 | 1 | 1 | 0 | 2.4 | |
| dominant_extension_languagesrc/git_provider.rs:459 | fn | 11 | 3 | 1 | 1 | 2.4 | |
| split_ref_pathsrc/git_provider.rs:264 | fn | 10 | 3 | 1 | 0 | 2 | |
| split_ref_branchsrc/git_provider.rs:275 | fn | 10 | 3 | 1 | 0 | 2 | |
| split_user_reposrc/git_provider.rs:286 | fn | 8 | 3 | 1 | 0 | 2 | |
| entry_point_candidatessrc/git_provider.rs:501 | fn | 6 | 1 | 1 | 0 | 1.4 | |
| package_json_can_declare_entrysrc/git_provider.rs:508 | fn | 3 | 1 | 1 | 0 | 1.4 | |
| package_json_main_sourcesrc/git_provider.rs:512 | fn | 7 | 1 | 1 | 0 | 1.4 | |
| language_extensionsrc/git_provider.rs:520 | fn | 5 | 1 | 1 | 0 | 1.4 | |
| is_git_specifiersrc/git_provider.rs:219 | fn | 3 | 3 | 3 | 0 | 1.4 | |
| extract_source_files_from_tarballsrc/git_provider.rs:417 | fn | 22 | 2 | 2 | 4 | 1.1 | |
| fetch_single_filesrc/git_provider.rs:310 | fn | 23 | 2 | 1 | 3 | 0.8 | |
| source_relative_pathsrc/git_provider.rs:394 | fn | 6 | 1 | 1 | 0 | 0.8 | |
| resolve_git_filesrc/git_provider.rs:171 | fn | 18 | 1 | 1 | 2 | 0.7 | |
| resolve_git_reposrc/git_provider.rs:190 | fn | 27 | 2 | 1 | 4 | 0.7 | |
| tar_entry_source_pathsrc/git_provider.rs:401 | fn | 8 | 2 | 1 | 2 | 0.7 | |
| validate_tar_entry_sizesrc/git_provider.rs:410 | fn | 6 | 2 | 1 | 2 | 0.7 | |
| fetch_repo_tarballsrc/git_provider.rs:340 | fn | 33 | 5 | 1 | 3 | 0.7 | |
| git_cache_keysrc/git_provider.rs:157 | fn | 6 | 2 | 1 | 0 | 0.6 | |
| resolve_git_specsrc/git_provider.rs:164 | fn | 6 | 2 | 1 | 2 | 0.6 | |
| GitProvider::namesrc/git_provider.rs:110 | trait impl | 3 | 1 | 0 | 0 | 0.5 | |
| GitProvider::resolvesrc/git_provider.rs:114 | trait impl | 15 | 3 | 0 | 6 | 0.5 | |
| GitProvider::listsrc/git_provider.rs:129 | trait impl | 24 | 2 | 0 | 0 | 0.5 | |
| test_parse_git_specifier_full_urlsrc/git_provider.rs:535 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_parse_git_specifier_with_branchsrc/git_provider.rs:544 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_parse_git_specifier_with_pathsrc/git_provider.rs:553 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_parse_github_shorthandsrc/git_provider.rs:562 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_parse_github_shorthand_with_branchsrc/git_provider.rs:571 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_parse_github_shorthand_with_branch_and_pathsrc/git_provider.rs:580 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_parse_gh_shorthandsrc/git_provider.rs:589 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_parse_git_specifier_strips_dot_gitsrc/git_provider.rs:597 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| test_parse_git_specifier_full_url_with_branch_and_pathsrc/git_provider.rs:603 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_parse_git_specifier_error_emptysrc/git_provider.rs:612 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| test_parse_git_specifier_error_no_slashsrc/git_provider.rs:618 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_parse_git_specifier_error_non_githubsrc/git_provider.rs:625 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_is_git_specifier_positivesrc/git_provider.rs:634 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_is_git_specifier_negativesrc/git_provider.rs:641 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_detect_language_package_jsonsrc/git_provider.rs:650 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_language_cargo_tomlsrc/git_provider.rs:658 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_language_setup_pysrc/git_provider.rs:666 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_language_go_modsrc/git_provider.rs:674 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_language_gemfilesrc/git_provider.rs:682 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_language_mix_exssrc/git_provider.rs:690 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_language_composer_jsonsrc/git_provider.rs:698 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_language_extension_fallbacksrc/git_provider.rs:706 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_detect_language_unknownsrc/git_provider.rs:715 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| test_detect_entry_point_javascriptsrc/git_provider.rs:723 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_detect_entry_point_javascript_srcsrc/git_provider.rs:732 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_entry_point_rust_libsrc/git_provider.rs:740 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_detect_entry_point_rust_main_fallbacksrc/git_provider.rs:749 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_entry_point_pythonsrc/git_provider.rs:757 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_entry_point_gosrc/git_provider.rs:765 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_entry_point_package_json_main_fieldsrc/git_provider.rs:773 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| test_detect_entry_point_last_resort_by_extensionsrc/git_provider.rs:782 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_detect_entry_point_none_for_unknownsrc/git_provider.rs:790 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_language_from_extensionsrc/git_provider.rs:799 | fn | 15 | 1 | 0 | 1 | 0.5 | |
| test_git_provider_namesrc/git_provider.rs:818 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| test_git_provider_list_empty_cachesrc/git_provider.rs:824 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| test_git_provider_rejects_non_git_specifiersrc/git_provider.rs:831 | fn | 6 | 1 | 0 | 1 | 0.5 | |
| test_extract_source_files_from_tarballsrc/git_provider.rs:841 | fn | 53 | 1 | 0 | 1 | 0.5 | |
| test_git_resolve_real_single_filesrc/git_provider.rs:902 | fn | 11 | 1 | 0 | 1 | 0.5 | |
| test_git_resolve_real_repo_tarballsrc/git_provider.rs:919 | fn | 11 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.