Merge testutils crate into the main crate

This avoids having to keep the apis in sync between the macros and the
main project.
This commit is contained in:
LLFourn
2021-05-19 13:04:32 +10:00
parent fcae5adabd
commit d60c5003bf
11 changed files with 50 additions and 75 deletions

View File

@@ -146,7 +146,7 @@ mod test {
let (mut wallet, descriptors, _) = get_funded_wallet(get_test_wpkh());
wallet.add_address_validator(Arc::new(TestValidator));
let addr = testutils!(@external descriptors, 10);
let addr = crate::testutils!(@external descriptors, 10);
let mut builder = wallet.build_tx();
builder.add_recipient(addr.script_pubkey(), 25_000);
builder.finish().unwrap();

View File

@@ -1515,6 +1515,7 @@ pub(crate) mod test {
use crate::types::KeychainKind;
use super::*;
use crate::testutils;
use crate::wallet::AddressIndex::{LastUnused, New, Peek, Reset};
#[test]