Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
db_tests.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <test/util/common.h>
#include <test/util/setup_common.h>
#include <util/check.h>
#include <util/fs.h>
#include <util/translation.h>
#include <wallet/sqlite.h>
#include <wallet/migrate.h>
#include <wallet/test/util.h>
#include <wallet/walletutil.h>
#include <cstddef>
#include <memory>
#include <span>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
Include dependency graph for db_tests.cpp:

Go to the source code of this file.

Classes

class  wallet::DbExecBlocker

Namespaces

namespace  wallet

Functions

std::ostream & operator<< (std::ostream &os, const std::pair< const SerializeData, SerializeData > &kv)
std::span< const std::byte > wallet::StringBytes (std::string_view str)
static SerializeData wallet::StringData (std::string_view str)
static void wallet::CheckPrefix (DatabaseBatch &batch, std::span< const std::byte > prefix, MockableData expected)
static std::vector< std::unique_ptr< WalletDatabase > > wallet::TestDatabases (const fs::path &path_root)
 wallet::BOOST_AUTO_TEST_CASE (db_cursor_prefix_range_test)
 wallet::BOOST_AUTO_TEST_CASE (db_cursor_prefix_byte_test)
 wallet::BOOST_AUTO_TEST_CASE (db_availability_after_write_error)
 wallet::BOOST_AUTO_TEST_CASE (erase_prefix)
 wallet::BOOST_AUTO_TEST_CASE (txn_close_failure_dangling_txn)
 wallet::BOOST_AUTO_TEST_CASE (concurrent_txn_dont_interfere)

Variables

constexpr int wallet::TEST_SQLITE_ERROR = -999

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const std::pair< const SerializeData, SerializeData > & kv )
inline

Definition at line 25 of file db_tests.cpp.