| 23 | } |
| 24 | |
| 25 | BOOST_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 | |
| 39 | BOOST_AUTO_TEST_CASE(getwalletenv_directory) |
| 40 | { |
nothing calls this directly
no test coverage detected