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

Function test_document_href

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

Source from the content-addressed store, hash-verified

507
508#[test]
509fn test_document_href() {
510 let doc = Document::new(
511 Path::new("public/"),
512 Path::new("public/platforms/python/troubleshooting/index.html"),
513 );
514
515 assert_eq!(doc.href(), Href("platforms/python/troubleshooting"));
516
517 let doc = Document::new(
518 Path::new("public/"),
519 Path::new("public/platforms/python/troubleshooting.html"),
520 );
521
522 assert_eq!(doc.href(), Href("platforms/python/troubleshooting.html"));
523}
524
525#[test]
526fn test_html_parsing_malformed_script() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…