Bitcoin Core
22.99.0
P2P Digital Currency
src
wallet
test
walletdb_tests.cpp
Go to the documentation of this file.
1
// Copyright (c) 2012-2020 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#include <
test/util/setup_common.h
>
6
#include <
clientversion.h
>
7
#include <
streams.h
>
8
#include <
uint256.h
>
9
10
#include <boost/test/unit_test.hpp>
11
12
namespace
wallet
{
13
BOOST_FIXTURE_TEST_SUITE
(walletdb_tests,
BasicTestingSetup
)
14
15
BOOST_AUTO_TEST_CASE
(walletdb_readkeyvalue)
16
{
25
CDataStream
ssValue(
SER_DISK
,
CLIENT_VERSION
);
26
uint256
dummy;
27
BOOST_CHECK_THROW
(ssValue >> dummy, std::ios_base::failure);
28
}
29
30
BOOST_AUTO_TEST_SUITE_END
()
31
}
// namespace wallet
SER_DISK
@ SER_DISK
Definition:
serialize.h:132
streams.h
setup_common.h
uint256.h
clientversion.h
wallet
Definition:
node.h:38
BOOST_FIXTURE_TEST_SUITE
#define BOOST_FIXTURE_TEST_SUITE(a, b)
Definition:
object.cpp:14
BOOST_AUTO_TEST_SUITE_END
BOOST_AUTO_TEST_SUITE_END()
BasicTestingSetup
Basic testing setup.
Definition:
setup_common.h:83
uint256
256-bit opaque blob.
Definition:
uint256.h:126
wallet::BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(bnb_search_test)
Definition:
coinselector_tests.cpp:177
CLIENT_VERSION
static const int CLIENT_VERSION
bitcoind-res.rc includes this file, but it cannot cope with real c++ code.
Definition:
clientversion.h:33
CDataStream
Double ended buffer combining vector and stream-like interfaces.
Definition:
streams.h:184
BOOST_CHECK_THROW
#define BOOST_CHECK_THROW(stmt, excMatch)
Definition:
object.cpp:19
Generated on Fri Feb 18 2022 20:03:55 for Bitcoin Core by
1.8.17