fn extractor_add_link_to_set_of_links_with_non_base_url() {
    let mut links = HashSet::<String>::new();
    let link = "\\\\\\\\";

    assert_eq!(links.len(), 0);
    assert!(ROBOTS_EXT
        .add_link_to_set_of_links(link, &mut links)
        .is_err());
    assert!(BODY_EXT.add_link_to_set_of_links(link, &mut links).is_err());

    assert_eq!(links.len(), 0);
    assert!(links.is_empty());
}
/// test that an invalid path fragment doesn't add anything to the set of links
test that an invalid path fragment doesn't add anything to the set of links
test that an invalid path fragment doesn ' t add anything to the set of links
fn extractor_add_link_to_set_of_links_with_non_base_url() {
    let mut links = HashSet::<String>::new();
    let link = "\\\\\\\\";
    assert_eq!(links.len(), 0);
    assert!(ROBOTS_EXT
        .add_link_to_set_of_links(link, &mut links)
        .is_err());
    assert!(BODY_EXT.add_link_to_set_of_links(link, &mut links).is_err());
    assert_eq!(links.len(), 0);
    assert!(links.is_empty());
}
fn extractor_add_link_to_set_of_links_with_non_base_url ( ) { let mut links = HashSet :: < String > :: new ( ) ; let link = " \\ \\ \\ \\ " ; assert_eq ! ( links len ( ) 0 ) ; assert ! ( ROBOTS_EXT add_link_to_set_of_links ( link mut links ) is_err ( ) ) ; assert ! ( BODY_EXT add_link_to_set_of_links ( link mut links ) is_err ( ) ) ; assert_eq ! ( links len ( ) 0 ) ; assert ! ( links is_empty ( ) ) ; }
test that an invalid path fragment doesn't add anything to the set of links
test that an invalid path fragment doesn ' t add anything to the set of links