script pubkeyOP_PUSHBYTES_65 [[:xdigit:]]{{130}} OP_CHECKSIG
transaction{txid}
1 Sat Range
.*"
),
);
}
#[test]
fn output_without_sat_index() {
let txid = "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b";
TestServer::new().assert_response_regex(
format!("/output/{txid}:0"),
StatusCode::OK,
format!(
".*Output {txid}:0.*Output {txid}:0
- value
- 5000000000
- script pubkey
- OP_PUSHBYTES_65 [[:xdigit:]]{{130}} OP_CHECKSIG
- transaction
- {txid}
.*"
),
);
}
#[test]
fn null_output_is_initially_empty() {
let txid = "0000000000000000000000000000000000000000000000000000000000000000";