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

Function test_normalize_url

atomic-cli/src/commands/clone/helpers.rs:741–751  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

739 /// Test normalize_url removes trailing slash.
740 #[test]
741 fn test_normalize_url() {
742 assert_eq!(normalize_url("https://example.com/"), "https://example.com");
743 assert_eq!(
744 normalize_url("https://example.com/repo/"),
745 "https://example.com/repo"
746 );
747 assert_eq!(
748 normalize_url("https://example.com/repo"),
749 "https://example.com/repo"
750 );
751 }
752
753 // Path Validation Tests
754

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected