Bitcoin Core
29.99.0
P2P Digital Currency
src
wallet
test
walletdb_tests.cpp
Go to the documentation of this file.
1
// Copyright (c) 2012-2021 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
#include <
wallet/test/util.h
>
10
#include <
wallet/wallet.h
>
11
12
#include <boost/test/unit_test.hpp>
13
14
namespace
wallet
{
15
BOOST_FIXTURE_TEST_SUITE
(walletdb_tests,
BasicTestingSetup
)
16
17
BOOST_AUTO_TEST_CASE
(walletdb_readkeyvalue)
18
{
27
DataStream
ssValue{};
28
uint256
dummy;
29
BOOST_CHECK_THROW
(ssValue >> dummy, std::ios_base::failure);
30
}
31
32
BOOST_AUTO_TEST_SUITE_END
()
33
}
// namespace wallet
DataStream
Double ended buffer combining vector and stream-like interfaces.
Definition:
streams.h:147
uint256
256-bit opaque blob.
Definition:
uint256.h:196
clientversion.h
BOOST_FIXTURE_TEST_SUITE
BOOST_FIXTURE_TEST_SUITE(cuckoocache_tests, BasicTestingSetup)
Test Suite for CuckooCache.
BOOST_AUTO_TEST_SUITE_END
BOOST_AUTO_TEST_SUITE_END()
wallet
Definition:
wallet_balance.cpp:26
wallet::BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(bnb_test)
Definition:
coinselection_tests.cpp:117
BOOST_CHECK_THROW
#define BOOST_CHECK_THROW(stmt, excMatch)
Definition:
object.cpp:19
setup_common.h
streams.h
BasicTestingSetup
Basic testing setup.
Definition:
setup_common.h:64
uint256.h
util.h
wallet.h
Generated on Mon May 12 2025 20:00:16 for Bitcoin Core by
1.9.4