Bitcoin Core  21.99.0
P2P Digital Currency
walletdb_tests.cpp
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 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 BOOST_FIXTURE_TEST_SUITE(walletdb_tests, BasicTestingSetup)
13 
14 BOOST_AUTO_TEST_CASE(walletdb_readkeyvalue)
15 {
25  uint256 dummy;
26  BOOST_CHECK_THROW(ssValue >> dummy, std::ios_base::failure);
27 }
28 
#define BOOST_CHECK_THROW(stmt, excMatch)
Definition: object.cpp:19
Double ended buffer combining vector and stream-like interfaces.
Definition: streams.h:202
BOOST_AUTO_TEST_CASE(walletdb_readkeyvalue)
256-bit opaque blob.
Definition: uint256.h:124
#define BOOST_FIXTURE_TEST_SUITE(a, b)
Definition: object.cpp:14
#define BOOST_AUTO_TEST_SUITE_END()
Definition: object.cpp:16
static const int CLIENT_VERSION
bitcoind-res.rc includes this file, but it cannot cope with real c++ code.
Definition: clientversion.h:38