TestServer::new_with_sat_index().assert_response_regex( "/sat/0", StatusCode::OK, ".*>4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b:0:0<.*", ); } #[test] fn dont_show_rare_txt_in_header_without_sat_index() { TestServer::new().assert_response_regex( "/", StatusCode::OK, ".* .* Input /0/0/0.*

Input /0/0/0

.*
text
.*The Times 03/Jan/2009 Chancellor on brink of second bailout for banks
.*", ); } #[test] fn input_missing() { TestServer::new().assert_response( "/input/1/1/1", StatusCode::NOT_FOUND, "input /1/1/1 not found", ); } #[test] fn commits_are_tracked() { let server = TestServer::new(); thread::sleep(Duration::from_millis(100)); assert_eq!(server.index.statistic(crate::index::Statistic::Commits), 1);