Bitcoin Core 29.99.0
P2P Digital Currency
Classes | Namespaces | Functions | Variables
db_tests.cpp File Reference
#include <bitcoin-build-config.h>
#include <boost/test/unit_test.hpp>
#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 <fstream>
#include <memory>
#include <string>
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.