MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_infer_repo_name_simple

Function test_infer_repo_name_simple

atomic-cli/src/commands/clone/helpers.rs:706–709  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

704 /// Test inferring repo name from simple URL.
705 #[test]
706 fn test_infer_repo_name_simple() {
707 let url = "https://example.com/org/my-project/code";
708 assert_eq!(infer_repo_name(url), Some("my-project".to_string()));
709 }
710
711 /// Test inferring repo name from URL with .git suffix.
712 #[test]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected