MCPcopy Create free account
hub / github.com/ElementsProject/elements / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

src/wallet/test/init_tests.cpp:16–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14BOOST_FIXTURE_TEST_SUITE(init_tests, InitWalletDirTestingSetup)
15
16BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_default)
17{
18 SetWalletDir(m_walletdir_path_cases["default"]);
19 bool result = m_wallet_loader->verify();
20 BOOST_CHECK(result == true);
21 fs::path walletdir = gArgs.GetPathArg("-walletdir");
22 fs::path expected_path = fs::canonical(m_walletdir_path_cases["default"]);
23 BOOST_CHECK_EQUAL(walletdir, expected_path);
24}
25
26BOOST_AUTO_TEST_CASE(walletinit_verify_walletdir_custom)
27{

Callers

nothing calls this directly

Calls 2

GetPathArgMethod · 0.80
verifyMethod · 0.45

Tested by

no test coverage detected