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

Function GetWalletEnv

src/wallet/test/db_tests.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16BOOST_FIXTURE_TEST_SUITE(db_tests, BasicTestingSetup)
17
18static std::shared_ptr<BerkeleyEnvironment> GetWalletEnv(const fs::path& path, std::string& database_filename)
19{
20 fs::path data_file = BDBDataFile(path);
21 database_filename = fs::PathToString(data_file.filename());
22 return GetBerkeleyEnv(data_file.parent_path());
23}
24
25BOOST_AUTO_TEST_CASE(getwalletenv_file)
26{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 4

BDBDataFileFunction · 0.85
PathToStringFunction · 0.85
GetBerkeleyEnvFunction · 0.85
filenameMethod · 0.80

Tested by

no test coverage detected