async fn request_link_happy_path() -> Result<()> {
    let srv = MockServer::start();

    let mock = srv.mock(|when, then| {
        when.method(GET).path("/login.php");
        then.status(200).body("this is a test");
    });

    let r_resp = ROBOTS_EXT.request_link(&srv.url("/login.php")).await?;
    let b_resp = BODY_EXT.request_link(&srv.url("/login.php")).await?;

    assert!(matches!(r_resp.status(), &StatusCode::OK));
    assert!(matches!(b_resp.status(), &StatusCode::OK));
    assert_eq!(r_resp.content_length(), 14);
    assert_eq!(b_resp.content_length(), 14);
    assert_eq!(mock.hits(), 2);
    Ok(())
}
/// request_link's happy path, expect back a FeroxResponse
request_link's happy path, expect back a FeroxResponse
request_link ' s happy path expect back a FeroxResponse
async fn request_link_happy_path() -> Result<()> {
    let srv = MockServer::start();
    let mock = srv.mock(|when, then| {
        when.method(GET).path("/login.php");
        then.status(200).body("this is a test");
    });
    let r_resp = ROBOTS_EXT.request_link(&srv.url("/login.php")).await?;
    let b_resp = BODY_EXT.request_link(&srv.url("/login.php")).await?;
    assert!(matches!(r_resp.status(), &StatusCode::OK));
    assert!(matches!(b_resp.status(), &StatusCode::OK));
    assert_eq!(r_resp.content_length(), 14);
    assert_eq!(b_resp.content_length(), 14);
    assert_eq!(mock.hits(), 2);
    Ok(())
}
async fn request_link_happy_path ( ) -> Result < ( ) > { let srv = MockServer :: start ( ) ; let mock = srv . mock ( | when , then | { when . method ( GET ) . path ( " " ) ; then . status ( 200 ) . body ( " " ) ; } ) ; let r_resp = ROBOTS_EXT . request_link ( & srv . url ( " " ) ) . await ? ; let b_resp = BODY_EXT . request_link ( & srv . url ( " " ) ) . await ? ; assert ! ( matches ( r_resp status ( ) StatusCode OK ) ) ; assert ! ( matches ( b_resp status ( ) StatusCode OK ) ) ; assert_eq ! ( r_resp content_length ( ) 14 ) ; assert_eq ! ( b_resp content_length ( ) 14 ) ; assert_eq ! ( mock hits ( ) 2 ) ; Ok ( ( ) ) }
request_link's happy path, expect back a FeroxResponse
request_link ' s happy path expect back a FeroxResponse