()
| 507 | |
| 508 | #[test] |
| 509 | fn 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] |
| 526 | fn test_html_parsing_malformed_script() { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…