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

Function test_infer_repo_name_project_code

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

Source from the content-addressed store, hash-verified

96
97#[test]
98fn test_infer_repo_name_project_code() {
99 let url =
100 Url::parse("https://api.example.com/tenant/t/portfolio/p/project/myrepo/code").unwrap();
101 assert_eq!(infer_repo_name(&url), Some("myrepo".to_string()));
102}
103
104#[test]
105fn test_infer_repo_name_dot_atomic() {

Callers

nothing calls this directly

Calls 2

parseFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected