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

Function test_http_remote_new_valid_url

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

Source from the content-addressed store, hash-verified

155
156#[test]
157fn test_http_remote_new_valid_url() {
158 // Note: This doesn't actually connect, just creates the struct
159 let result = HttpRemote::new("https://api.example.com/tenant/t/portfolio/p/project/pr/code");
160 assert!(result.is_ok());
161
162 let remote = result.unwrap();
163 assert_eq!(remote.repo_name(), Some("pr"));
164}
165
166#[test]
167fn test_http_remote_new_invalid_url() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected