A WalletDatabase whose contents and return values can be modified as needed for testing.
More...
#include <util.h>
A WalletDatabase whose contents and return values can be modified as needed for testing.
Definition at line 96 of file util.h.
◆ MockableDatabase()
wallet::MockableDatabase::MockableDatabase |
( |
MockableData |
records = {} | ) |
|
|
inline |
◆ ~MockableDatabase()
wallet::MockableDatabase::~MockableDatabase |
( |
| ) |
|
|
default |
◆ Backup()
bool wallet::MockableDatabase::Backup |
( |
const std::string & |
strDest | ) |
const |
|
inlineoverridevirtual |
◆ Close()
void wallet::MockableDatabase::Close |
( |
| ) |
|
|
inlineoverridevirtual |
Flush to the database file and close the database.
Also close the environment if no other databases are open in it.
Implements wallet::WalletDatabase.
Definition at line 109 of file util.h.
◆ Filename()
std::string wallet::MockableDatabase::Filename |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Format()
std::string wallet::MockableDatabase::Format |
( |
| ) |
|
|
inlineoverridevirtual |
◆ MakeBatch()
std::unique_ptr< DatabaseBatch > wallet::MockableDatabase::MakeBatch |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Open()
void wallet::MockableDatabase::Open |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Rewrite()
bool wallet::MockableDatabase::Rewrite |
( |
const char * |
pszSkip = nullptr | ) |
|
|
inlineoverridevirtual |
Rewrite the entire database on disk, with the exception of key pszSkip if non-zero.
Implements wallet::WalletDatabase.
Definition at line 107 of file util.h.
◆ m_pass
bool wallet::MockableDatabase::m_pass {true} |
◆ m_records
The documentation for this class was generated from the following file: