MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / TestDatabases

Function TestDatabases

src/wallet/test/db_tests.cpp:63–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61BOOST_FIXTURE_TEST_SUITE(db_tests, BasicTestingSetup)
62
63static std::vector<std::unique_ptr<WalletDatabase>> TestDatabases(const fs::path& path_root)
64{
65 std::vector<std::unique_ptr<WalletDatabase>> dbs;
66 DatabaseOptions options;
67 DatabaseStatus status;
68 bilingual_str error;
69 // Unable to test BerkeleyRO since we cannot create a new BDB database to open
70 dbs.emplace_back(MakeSQLiteDatabase(path_root / "sqlite", options, status, error));
71 dbs.emplace_back(CreateMockableWalletDatabase());
72 return dbs;
73}
74
75BOOST_AUTO_TEST_CASE(db_cursor_prefix_range_test)
76{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 3

MakeSQLiteDatabaseFunction · 0.85
emplace_backMethod · 0.45

Tested by

no test coverage detected