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

Function test_infer_repo_name_simple

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

Source from the content-addressed store, hash-verified

116
117#[test]
118fn test_infer_repo_name_simple() {
119 let url = Url::parse("https://example.com/myrepo").unwrap();
120 assert_eq!(infer_repo_name(&url), Some("myrepo".to_string()));
121}
122
123#[test]
124fn test_parse_changelist_empty() {

Callers

nothing calls this directly

Calls 2

parseFunction · 0.50
unwrapMethod · 0.45

Tested by

no test coverage detected