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

Function test_infer_repo_name_dot_atomic

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

Source from the content-addressed store, hash-verified

103
104#[test]
105fn test_infer_repo_name_dot_atomic() {
106 let url =
107 Url::parse("https://api.example.com/tenant/t/portfolio/p/project/myrepo/.atomic").unwrap();
108 assert_eq!(infer_repo_name(&url), Some("myrepo".to_string()));
109}
110
111#[test]
112fn test_infer_repo_name_git_suffix() {

Callers

nothing calls this directly

Calls 2

parseFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected