MCPcopy Create free account
hub / github.com/untitaker/hyperlink / empty_href

Function empty_href

src/html/mod.rs:90–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89 #[test]
90 fn empty_href() {
91 let mut base = String::from("./foo/install.html");
92 let path = "";
93 push_and_canonicalize(&mut base, path);
94 assert_eq!(base, "./foo/install.html");
95
96 let mut base = String::from("./foo/");
97 push_and_canonicalize(&mut base, path);
98 assert_eq!(base, "./foo");
99 }
100
101 #[test]
102 fn index_html() {

Callers

nothing calls this directly

Calls 1

push_and_canonicalizeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…