Raven Core  3.0.0
P2P Digital Currency
Classes | Macros | Typedefs | Functions | Variables
wallet_tests.cpp File Reference
#include "wallet/wallet.h"
#include "chainparams.h"
#include <set>
#include <stdint.h>
#include <utility>
#include <vector>
#include "consensus/validation.h"
#include "rpc/server.h"
#include "test/test_raven.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 "util.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_test)
 
 BOOST_AUTO_TEST_CASE (ApproximateBestSubset_Test)
 
 BOOST_FIXTURE_TEST_CASE (rescan_test, TestChain100Setup)
 
 BOOST_FIXTURE_TEST_CASE (importwallet_rescan_test, TestChain100Setup)
 
 BOOST_FIXTURE_TEST_CASE (coin_mark_dirty_immature_credit_test, TestChain100Setup)
 
 BOOST_AUTO_TEST_CASE (ComputeTimeSmart_test)
 
 BOOST_AUTO_TEST_CASE (LoadReceiveRequests_Test)
 
 BOOST_FIXTURE_TEST_CASE (ListCoins_test, ListCoinsTestingSetup)
 

Variables

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

Macro Definition Documentation

◆ RANDOM_REPEATS

#define RANDOM_REPEATS   5

Definition at line 38 of file wallet_tests.cpp.

◆ RUN_TESTS

#define RUN_TESTS   100

Definition at line 34 of file wallet_tests.cpp.

Typedef Documentation

◆ CoinSet

typedef std::set<CInputCoin> CoinSet

Definition at line 42 of file wallet_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( coin_selection_test  )

Definition at line 85 of file wallet_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( ApproximateBestSubset_Test  )

Definition at line 357 of file wallet_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( ComputeTimeSmart_test  )

Definition at line 579 of file wallet_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( LoadReceiveRequests_Test  )

Definition at line 609 of file wallet_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [1/4]

BOOST_FIXTURE_TEST_CASE ( rescan_test  ,
TestChain100Setup   
)

Definition at line 386 of file wallet_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [2/4]

BOOST_FIXTURE_TEST_CASE ( importwallet_rescan_test  ,
TestChain100Setup   
)

Definition at line 466 of file wallet_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [3/4]

BOOST_FIXTURE_TEST_CASE ( coin_mark_dirty_immature_credit_test  ,
TestChain100Setup   
)

Definition at line 531 of file wallet_tests.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [4/4]

BOOST_FIXTURE_TEST_CASE ( ListCoins_test  ,
ListCoinsTestingSetup   
)

Definition at line 666 of file wallet_tests.cpp.

Here is the call graph for this function:

◆ dumpwallet()

UniValue dumpwallet ( const JSONRPCRequest request)

Definition at line 594 of file rpcdump.cpp.

Here is the call graph for this function:

◆ importmulti()

UniValue importmulti ( const JSONRPCRequest request)

Definition at line 1032 of file rpcdump.cpp.

Here is the call graph for this function:

◆ importwallet()

UniValue importwallet ( const JSONRPCRequest request)

Definition at line 450 of file rpcdump.cpp.

Here is the call graph for this function:

Variable Documentation

◆ pwalletMain

CWallet* pwalletMain

Definition at line 12 of file wallet_test_fixture.cpp.

◆ wtxn

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

Definition at line 40 of file wallet_tests.cpp.