fn extractor_add_link_to_set_of_links_happy_path() {
    let mut r_links = HashSet::<String>::new();
    let r_link = "admin";
    let mut b_links = HashSet::<String>::new();
    let b_link = "shmadmin";

    assert_eq!(r_links.len(), 0);
    ROBOTS_EXT
        .add_link_to_set_of_links(r_link, &mut r_links)
        .unwrap();

    assert_eq!(r_links.len(), 1);
    assert!(r_links.contains("http://localhost/admin"));

    assert_eq!(b_links.len(), 0);

    BODY_EXT
        .add_link_to_set_of_links(b_link, &mut b_links)
        .unwrap();

    assert_eq!(b_links.len(), 1);
    assert!(b_links.contains("http://localhost/shmadmin"));
}
/// test that a full url and fragment are joined correctly, then added to the given list
/// i.e. the happy path
test that a full url and fragment are joined correctly, then added to the given list
i.e. the happy path
test that a full url and fragment are joined correctly then added to the given list i . e . the happy path
fn extractor_add_link_to_set_of_links_happy_path() {
    let mut r_links = HashSet::<String>::new();
    let r_link = "admin";
    let mut b_links = HashSet::<String>::new();
    let b_link = "shmadmin";
    assert_eq!(r_links.len(), 0);
    ROBOTS_EXT
        .add_link_to_set_of_links(r_link, &mut r_links)
        .unwrap();
    assert_eq!(r_links.len(), 1);
    assert!(r_links.contains("http://localhost/admin"));
    assert_eq!(b_links.len(), 0);
    BODY_EXT
        .add_link_to_set_of_links(b_link, &mut b_links)
        .unwrap();
    assert_eq!(b_links.len(), 1);
    assert!(b_links.contains("http://localhost/shmadmin"));
}
fn extractor_add_link_to_set_of_links_happy_path ( ) { let mut r_links = HashSet :: < String > :: new ( ) ; let r_link = " " ; let mut b_links = HashSet :: < String > :: new ( ) ; let b_link = " " ; assert_eq ! ( r_links len ( ) 0 ) ; ROBOTS_EXT . add_link_to_set_of_links ( r_link , & mut r_links ) . unwrap ( ) ; assert_eq ! ( r_links len ( ) 1 ) ; assert ! ( r_links contains ( " " ) ) ; assert_eq ! ( b_links len ( ) 0 ) ; BODY_EXT . add_link_to_set_of_links ( b_link , & mut b_links ) . unwrap ( ) ; assert_eq ! ( b_links len ( ) 1 ) ; assert ! ( b_links contains ( " " ) ) ; }
test that a full url and fragment are joined correctly, then added to the given list
i.e.
test that a full url and fragment are joined correctly then added to the given list i . e .