Bitcoin ABC 0.34.2
P2P Digital Currency
Functions
stakecontendercache_tests.cpp File Reference
#include <avalanche/stakecontendercache.h>
#include <avalanche/peermanager.h>
#include <script/script.h>
#include <avalanche/test/util.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <util/time.h>
#include <validation.h>
#include <boost/test/unit_test.hpp>
#include <limits>
Include dependency graph for stakecontendercache_tests.cpp:

Go to the source code of this file.

Functions

static void CheckWinners (StakeContenderCache &cache, const BlockHash &prevblockhash, std::vector< CScript > manualWinners, std::vector< ProofRef > acceptedWinners, std::vector< ProofRef > rejectedWinners)
 
static void CheckVoteStatus (StakeContenderCache &cache, const BlockHash &prevblockhash, const ProofRef &proof, int expected)
 
 BOOST_AUTO_TEST_CASE (vote_status_tests)
 
 BOOST_AUTO_TEST_CASE (has_accepted_winner_tests)
 
 BOOST_AUTO_TEST_CASE (winners_tests)
 
 BOOST_AUTO_TEST_CASE (cleanup_tests)
 
 BOOST_FIXTURE_TEST_CASE (promote_tests, PeerManagerFixture)
 
 BOOST_AUTO_TEST_CASE (pollable_contenders_tests)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/5]

BOOST_AUTO_TEST_CASE ( cleanup_tests  )

Definition at line 344 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/5]

BOOST_AUTO_TEST_CASE ( has_accepted_winner_tests  )

Definition at line 154 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/5]

BOOST_AUTO_TEST_CASE ( pollable_contenders_tests  )

Definition at line 608 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/5]

BOOST_AUTO_TEST_CASE ( vote_status_tests  )

Definition at line 117 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/5]

BOOST_AUTO_TEST_CASE ( winners_tests  )

Definition at line 202 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( promote_tests  ,
PeerManagerFixture   
)

Definition at line 492 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:

◆ CheckVoteStatus()

static void CheckVoteStatus ( StakeContenderCache &  cache,
const BlockHash &  prevblockhash,
const ProofRef &  proof,
int  expected 
)
static

Definition at line 104 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CheckWinners()

static void CheckWinners ( StakeContenderCache &  cache,
const BlockHash &  prevblockhash,
std::vector< CScript >  manualWinners,
std::vector< ProofRef >  acceptedWinners,
std::vector< ProofRef >  rejectedWinners 
)
static

Definition at line 35 of file stakecontendercache_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: