#![allow(clippy::type_complexity)] use { self::{command_builder::CommandBuilder, expected::Expected, test_server::TestServer}, bitcoin::{ address::{Address, NetworkUnchecked}, blockdata::constants::COIN_VALUE, Network, OutPoint, Txid, }, executable_path::executable_path, ord::{ inscription_id::InscriptionId, rarity::Rarity, templates::{ block::BlockJson, inscription::InscriptionJson, inscriptions::InscriptionsJson, output::OutputJson, sat::SatJson, }, SatPoint, }, pretty_assertions::assert_eq as pretty_assert_eq, regex::Regex, reqwest::{StatusCode, Url}, serde::de::DeserializeOwned, std::{ collections::BTreeMap, fs, io::Write, net::TcpListener, path::Path, process::{Child, Command, Stdio}, str::{self, FromStr}, thread, time::Duration, }, tempfile::TempDir, test_bitcoincore_rpc::{Sent, TransactionTemplate}, }; macro_rules! assert_regex_match { ($string:expr, $pattern:expr $(,)?) => { let regex = Regex::new(&format!("^(?s){}$", $pattern)).unwrap();