fn index_page() {
    let page = get(&[], addr(1965), "gemini://localhost").expect("could not get page");

    assert_eq!(
        page.header,
        Header {
            status: Status::Success,
            meta: "text/gemini".to_string(),
        }
    );

    assert_eq!(
        page.body,
        Some(
            std::fs::read_to_string(concat!(
                env!("CARGO_MANIFEST_DIR"),
                "/tests/data/content/index.gmi"
            ))
            .unwrap()
        )
    );
}
/// - serves index page for a directory
/// - serves the correct content
serves index page for a directory
serves the correct content
serves index page for a directory serves the correct content
fn index_page() {
    let page = get(&[], addr(1965), "gemini://localhost").expect("could not get page");
    assert_eq!(
        page.header,
        Header {
            status: Status::Success,
            meta: "text/gemini".to_string(),
        }
    );
    assert_eq!(
        page.body,
        Some(
            std::fs::read_to_string(concat!(
                env!("CARGO_MANIFEST_DIR"),
                "/tests/data/content/index.gmi"
            ))
            .unwrap()
        )
    );
}
fn index_page ( ) { let page = get ( & [ ] , addr ( 1965 ) , " " ) . expect ( " " ) ; assert_eq ! ( page header Header { status Status Success meta " " to_string ( ) } ) ; assert_eq ! ( page body Some ( std fs read_to_string ( concat ( env ( " " ) " " ) ) unwrap ( ) ) ) ; }
serves index page for a directory
 serves the correct content
serves index page for a directory serves the correct content