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

Function resource_url_replaces_code_suffix

atomic-remote/src/http/bare.rs:74–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73 #[test]
74 fn resource_url_replaces_code_suffix() {
75 let r = HttpRemote::new("https://h/workspaces/w/projects/p/code").unwrap();
76 assert_eq!(
77 r.resource_url("refs/views"),
78 "https://h/workspaces/w/projects/p/refs/views"
79 );
80 assert_eq!(
81 r.resource_url("refs/views/dev"),
82 "https://h/workspaces/w/projects/p/refs/views/dev"
83 );
84 }
85
86 #[test]
87 fn resource_url_without_code_suffix_appends() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected