Bitcoin ABC  0.24.10
P2P Digital Currency
Namespaces | Macros | Typedefs | Functions
processor_tests.cpp File Reference
#include <avalanche/processor.h>
#include <avalanche/delegationbuilder.h>
#include <avalanche/peermanager.h>
#include <avalanche/proofbuilder.h>
#include <avalanche/voterecord.h>
#include <chain.h>
#include <config.h>
#include <net_processing.h>
#include <reverse_iterator.h>
#include <scheduler.h>
#include <util/time.h>
#include <util/translation.h>
#include <validation.h>
#include <avalanche/test/util.h>
#include <test/util/setup_common.h>
#include <boost/mpl/list.hpp>
#include <boost/test/unit_test.hpp>
Include dependency graph for processor_tests.cpp:

Go to the source code of this file.

Namespaces

 avalanche
 

Macros

#define REGISTER_VOTE_AND_CHECK(vr, vote, state, finalized, confidence)
 

Typedefs

using VoteItemProviders = boost::mpl::list< BlockProvider, ProofProvider >
 

Functions

 BOOST_AUTO_TEST_CASE (vote_record)
 
 BOOST_AUTO_TEST_CASE (block_update)
 
 BOOST_AUTO_TEST_CASE (block_reconcile_twice)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (vote_item_register, P, VoteItemProviders)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (multi_item_register, P, VoteItemProviders)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (poll_and_response, P, VoteItemProviders)
 
 BOOST_AUTO_TEST_CASE (dont_poll_invalid_block)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (poll_inflight_timeout, P, VoteItemProviders)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (poll_inflight_count, P, VoteItemProviders)
 
 BOOST_AUTO_TEST_CASE (quorum_diversity)
 
 BOOST_AUTO_TEST_CASE (event_loop)
 
 BOOST_AUTO_TEST_CASE (destructor)
 
 BOOST_AUTO_TEST_CASE (add_proof_to_reconcile)
 
 BOOST_AUTO_TEST_CASE (proof_record)
 

Macro Definition Documentation

◆ REGISTER_VOTE_AND_CHECK

#define REGISTER_VOTE_AND_CHECK (   vr,
  vote,
  state,
  finalized,
  confidence 
)
Value:
vr.registerVote(NO_NODE, vote); \
BOOST_CHECK_EQUAL(vr.isAccepted(), state); \
BOOST_CHECK_EQUAL(vr.hasFinalized(), finalized); \
BOOST_CHECK_EQUAL(vr.getConfidence(), confidence);

Definition at line 301 of file processor_tests.cpp.

Typedef Documentation

◆ VoteItemProviders

using VoteItemProviders = boost::mpl::list<BlockProvider, ProofProvider>

Definition at line 299 of file processor_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/9]

BOOST_AUTO_TEST_CASE ( add_proof_to_reconcile  )

Definition at line 1113 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/9]

BOOST_AUTO_TEST_CASE ( block_reconcile_twice  )

Definition at line 427 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/9]

BOOST_AUTO_TEST_CASE ( block_update  )

Definition at line 407 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/9]

BOOST_AUTO_TEST_CASE ( destructor  )

Definition at line 1089 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/9]

BOOST_AUTO_TEST_CASE ( dont_poll_invalid_block  )

Definition at line 808 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/9]

BOOST_AUTO_TEST_CASE ( event_loop  )

Definition at line 1008 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/9]

BOOST_AUTO_TEST_CASE ( proof_record  )

Definition at line 1162 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/9]

BOOST_AUTO_TEST_CASE ( quorum_diversity  )

Definition at line 945 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/9]

BOOST_AUTO_TEST_CASE ( vote_record  )

Definition at line 307 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/5]

BOOST_AUTO_TEST_CASE_TEMPLATE ( multi_item_register  ,
,
VoteItemProviders   
)

Definition at line 596 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/5]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_and_response  ,
,
VoteItemProviders   
)

Definition at line 690 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/5]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_inflight_count  ,
,
VoteItemProviders   
)

Definition at line 892 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/5]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_inflight_timeout  ,
,
VoteItemProviders   
)

Definition at line 845 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/5]

BOOST_AUTO_TEST_CASE_TEMPLATE ( vote_item_register  ,
,
VoteItemProviders   
)

Definition at line 450 of file processor_tests.cpp.

NO_NODE
static constexpr NodeId NO_NODE
Special NodeId that represent no node.
Definition: nodeid.h:15