9#include <test/util/setup_common.h>
11#include <boost/test/unit_test.hpp>
27 std::shared_ptr<BerkeleyEnvironment> env =
38 std::shared_ptr<BerkeleyEnvironment> env =
GetWalletEnv(datadir, filename);
48 std::shared_ptr<BerkeleyEnvironment>
env_1 =
50 std::shared_ptr<BerkeleyEnvironment>
env_2 =
52 std::shared_ptr<BerkeleyEnvironment>
env_3 =
64 std::shared_ptr<BerkeleyEnvironment>
env_1_a =
66 std::shared_ptr<BerkeleyEnvironment>
env_2_a =
70 std::shared_ptr<BerkeleyEnvironment>
env_1_b =
72 std::shared_ptr<BerkeleyEnvironment>
env_2_b =
std::shared_ptr< BerkeleyEnvironment > GetWalletEnv(const fs::path &wallet_path, std::string &database_filename)
Get BerkeleyEnvironment and database filename given a wallet path.
const fs::path & GetDataDirNet() const
Get data directory path with appended network identifier.
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
#define BOOST_CHECK(expr)
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
BOOST_AUTO_TEST_CASE(getwalletenv_file)