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

Function BOOST_AUTO_TEST_CASE

src/wallet/test/db_tests.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25BOOST_AUTO_TEST_CASE(getwalletenv_file)
26{
27 std::string test_name = "test_name.dat";
28 const fs::path datadir = gArgs.GetDataDirNet();
29 fs::path file_path = datadir / test_name;
30 std::ofstream f{file_path};
31 f.close();
32
33 std::string filename;
34 std::shared_ptr<BerkeleyEnvironment> env = GetWalletEnv(file_path, filename);
35 BOOST_CHECK_EQUAL(filename, test_name);
36 BOOST_CHECK_EQUAL(env->Directory(), datadir);
37}
38
39BOOST_AUTO_TEST_CASE(getwalletenv_directory)
40{

Callers

nothing calls this directly

Calls 4

GetWalletEnvFunction · 0.85
DirectoryMethod · 0.80
closeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected