"/sat/0", StatusCode::OK, ".*Sat 0.*

Sat 0

.*", ); } #[test] fn block() { TestServer::new().assert_response_regex( "/block/0", StatusCode::OK, ".*Block 0.*

Block 0

.*", ); } #[test] fn sat_out_of_range() { TestServer::new().assert_response( "/sat/2099999997690000", StatusCode::BAD_REQUEST, "Invalid URL: invalid sat", ); } #[test] fn invalid_outpoint_hash_returns_400() { TestServer::new().assert_response( "/output/foo:0", StatusCode::BAD_REQUEST, "Invalid URL: error parsing TXID", ); } #[test] fn output_with_sat_index() { let txid = "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b"; TestServer::new_with_sat_index().assert_response_regex( format!("/output/{txid}:0"), StatusCode::OK, format!( ".*Output {txid}:0.*

Output {txid}:0

value
5000000000