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

Function test_infer_repo_name_git_suffix

atomic-remote/src/http/tests.rs:112–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110
111#[test]
112fn test_infer_repo_name_git_suffix() {
113 let url = Url::parse("https://example.com/myrepo.git").unwrap();
114 assert_eq!(infer_repo_name(&url), Some("myrepo".to_string()));
115}
116
117#[test]
118fn test_infer_repo_name_simple() {

Callers

nothing calls this directly

Calls 2

parseFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected