Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Macros | Typedefs | Functions | Variables
wallet_tests.cpp File Reference
#include <wallet/wallet.h>
#include <set>
#include <stdint.h>
#include <utility>
#include <vector>
#include <consensus/validation.h>
#include <consensus/consensus.h>
#include <rpc/server.h>
#include <test/test_fabcoin.h>
#include <validation.h>
#include <wallet/coincontrol.h>
#include <wallet/test/wallet_test_fixture.h>
#include <boost/test/unit_test.hpp>
#include <univalue.h>
#include <timedata.h>
#include <random.h>
Include dependency graph for wallet_tests.cpp:

Go to the source code of this file.

Classes

class  ListCoinsTestingSetup
 

Macros

#define RUN_TESTS   100
 
#define RANDOM_REPEATS   5
 

Typedefs

typedef std::set< CInputCoinCoinSet
 

Functions

UniValue importmulti (const JSONRPCRequest &request)
 
UniValue dumpwallet (const JSONRPCRequest &request)
 
UniValue importwallet (const JSONRPCRequest &request)
 
 BOOST_AUTO_TEST_CASE (coin_selection_tests)
 
 BOOST_AUTO_TEST_CASE (ApproximateBestSubset)
 
 BOOST_FIXTURE_TEST_CASE (rescan, TestChain800Setup)
 
 BOOST_FIXTURE_TEST_CASE (importwallet_rescan, TestChain800Setup)
 
 BOOST_FIXTURE_TEST_CASE (coin_mark_dirty_immature_credit, TestChain800Setup)
 
 BOOST_AUTO_TEST_CASE (ComputeTimeSmart)
 
 BOOST_AUTO_TEST_CASE (LoadReceiveRequests)
 
 BOOST_FIXTURE_TEST_CASE (ListCoins, ListCoinsTestingSetup)
 

Variables

CWalletpwalletMain
 
std::vector< std::unique_ptr< CWalletTx > > wtxn
 

Macro Definition Documentation

#define RANDOM_REPEATS   5

Definition at line 37 of file wallet_tests.cpp.

#define RUN_TESTS   100

Definition at line 33 of file wallet_tests.cpp.

Typedef Documentation

typedef std::set<CInputCoin> CoinSet

Definition at line 41 of file wallet_tests.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( coin_selection_tests  )

Definition at line 83 of file wallet_tests.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ApproximateBestSubset  )

Definition at line 350 of file wallet_tests.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( ComputeTimeSmart  )

Definition at line 559 of file wallet_tests.cpp.

Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( LoadReceiveRequests  )

Definition at line 587 of file wallet_tests.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( rescan  ,
TestChain800Setup   
)

Definition at line 377 of file wallet_tests.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( importwallet_rescan  ,
TestChain800Setup   
)

Definition at line 454 of file wallet_tests.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( coin_mark_dirty_immature_credit  ,
TestChain800Setup   
)

Definition at line 515 of file wallet_tests.cpp.

Here is the call graph for this function:

BOOST_FIXTURE_TEST_CASE ( ListCoins  ,
ListCoinsTestingSetup   
)

Definition at line 642 of file wallet_tests.cpp.

Here is the call graph for this function:

UniValue dumpwallet ( const JSONRPCRequest request)

Definition at line 588 of file rpcdump.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue importmulti ( const JSONRPCRequest request)

Definition at line 1030 of file rpcdump.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

UniValue importwallet ( const JSONRPCRequest request)

Definition at line 446 of file rpcdump.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

CWallet* pwalletMain

Definition at line 11 of file wallet_test_fixture.cpp.

std::vector<std::unique_ptr<CWalletTx> > wtxn

Definition at line 39 of file wallet_tests.cpp.