Bitcoin ABC  0.28.12
P2P Digital Currency
Classes | Namespaces | Typedefs | Functions
processor_tests.cpp File Reference
#include <avalanche/processor.h>
#include <arith_uint256.h>
#include <avalanche/avalanche.h>
#include <avalanche/delegationbuilder.h>
#include <avalanche/peermanager.h>
#include <avalanche/proofbuilder.h>
#include <avalanche/voterecord.h>
#include <chain.h>
#include <config.h>
#include <core_io.h>
#include <key_io.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 <functional>
#include <limits>
#include <type_traits>
#include <vector>
Include dependency graph for processor_tests.cpp:

Go to the source code of this file.

Classes

struct  avalanche::TestVoteRecord
 

Namespaces

 avalanche
 

Typedefs

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

Functions

 BOOST_AUTO_TEST_CASE_TEMPLATE (voteitemupdate, P, VoteItemProviders)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (item_reconcile_twice, P, VoteItemProviders)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (item_null, P, VoteItemProviders)
 
 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_TEMPLATE (dont_poll_invalid_item, P, VoteItemProviders)
 
 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)
 
 BOOST_AUTO_TEST_CASE (quorum_detection)
 
 BOOST_AUTO_TEST_CASE (quorum_detection_parameter_validation)
 
 BOOST_AUTO_TEST_CASE (min_avaproofs_messages)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (voting_parameters, P, VoteItemProviders)
 
 BOOST_AUTO_TEST_CASE (block_vote_finalization_tip)
 
 BOOST_AUTO_TEST_CASE (vote_map_comparator)
 
 BOOST_AUTO_TEST_CASE (vote_map_tx_comparator)
 
 BOOST_AUTO_TEST_CASE (block_reconcile_initial_vote)
 
 BOOST_AUTO_TEST_CASE (compute_staking_rewards)
 
 BOOST_AUTO_TEST_CASE (local_proof_status)
 
 BOOST_AUTO_TEST_CASE (reconcileOrFinalize)
 

Typedef Documentation

◆ VoteItemProviders

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

Definition at line 464 of file processor_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/15]

BOOST_AUTO_TEST_CASE ( add_proof_to_reconcile  )

Definition at line 1312 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/15]

BOOST_AUTO_TEST_CASE ( block_reconcile_initial_vote  )

Definition at line 2200 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/15]

BOOST_AUTO_TEST_CASE ( block_vote_finalization_tip  )

Definition at line 1829 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/15]

BOOST_AUTO_TEST_CASE ( compute_staking_rewards  )

Definition at line 2249 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/15]

BOOST_AUTO_TEST_CASE ( destructor  )

Definition at line 1288 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/15]

BOOST_AUTO_TEST_CASE ( event_loop  )

Definition at line 1204 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/15]

BOOST_AUTO_TEST_CASE ( local_proof_status  )

Definition at line 2370 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/15]

BOOST_AUTO_TEST_CASE ( min_avaproofs_messages  )

Definition at line 1685 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/15]

BOOST_AUTO_TEST_CASE ( proof_record  )

Definition at line 1367 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/15]

BOOST_AUTO_TEST_CASE ( quorum_detection  )

Definition at line 1451 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/15]

BOOST_AUTO_TEST_CASE ( quorum_detection_parameter_validation  )

Definition at line 1626 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/15]

BOOST_AUTO_TEST_CASE ( quorum_diversity  )

Definition at line 1140 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/15]

BOOST_AUTO_TEST_CASE ( reconcileOrFinalize  )

Definition at line 2458 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/15]

BOOST_AUTO_TEST_CASE ( vote_map_comparator  )

Definition at line 1983 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [15/15]

BOOST_AUTO_TEST_CASE ( vote_map_tx_comparator  )

Definition at line 2123 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( dont_poll_invalid_item  ,
,
VoteItemProviders   
)

Definition at line 988 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( item_null  ,
,
VoteItemProviders   
)

Definition at line 569 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( item_reconcile_twice  ,
,
VoteItemProviders   
)

Definition at line 494 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( multi_item_register  ,
,
VoteItemProviders   
)

Definition at line 740 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_and_response  ,
,
VoteItemProviders   
)

Definition at line 834 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_inflight_count  ,
,
VoteItemProviders   
)

Definition at line 1086 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_inflight_timeout  ,
,
VoteItemProviders   
)

Definition at line 1029 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [8/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( vote_item_register  ,
,
VoteItemProviders   
)

Definition at line 590 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [9/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( voteitemupdate  ,
,
VoteItemProviders   
)

Definition at line 467 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [10/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( voting_parameters  ,
,
VoteItemProviders   
)

Definition at line 1744 of file processor_tests.cpp.

Here is the call graph for this function: