mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
test: refactor: Give unit test functions access to test state
Add unit test subclasses as needed so unit test functions that need to access members like m_rng can reference it directly.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
namespace {
|
||||
|
||||
struct BIP324Test : BasicTestingSetup {
|
||||
void TestBIP324PacketVector(
|
||||
uint32_t in_idx,
|
||||
const std::string& in_priv_ours_hex,
|
||||
@@ -155,10 +156,11 @@ void TestBIP324PacketVector(
|
||||
}
|
||||
}
|
||||
}
|
||||
}; // struct BIP324Test
|
||||
|
||||
} // namespace
|
||||
|
||||
BOOST_FIXTURE_TEST_SUITE(bip324_tests, BasicTestingSetup)
|
||||
BOOST_FIXTURE_TEST_SUITE(bip324_tests, BIP324Test)
|
||||
|
||||
BOOST_AUTO_TEST_CASE(packet_test_vectors) {
|
||||
// BIP324 key derivation uses network magic in the HKDF process. We use mainnet params here
|
||||
|
||||
Reference in New Issue
Block a user