Bitcoin ABC 0.30.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/rewardrankcomparator.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 <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

namespace  avalanche
 

Typedefs

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

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, NullableVoteItemProviders)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (item_zero, P, Uint256VoteItemProviders)
 
 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 (block_reconcile_initial_vote)
 
 BOOST_AUTO_TEST_CASE (compute_staking_rewards)
 
 BOOST_AUTO_TEST_CASE (local_proof_status)
 
 BOOST_AUTO_TEST_CASE (reconcileOrFinalize)
 
 BOOST_AUTO_TEST_CASE (stake_contenders)
 
 BOOST_AUTO_TEST_CASE (stake_contender_local_winners)
 

Typedef Documentation

◆ NullableVoteItemProviders

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

Definition at line 543 of file processor_tests.cpp.

◆ Uint256VoteItemProviders

using Uint256VoteItemProviders = boost::mpl::list<StakeContenderProvider>

Definition at line 545 of file processor_tests.cpp.

◆ VoteItemProviders

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

Definition at line 541 of file processor_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/16]

BOOST_AUTO_TEST_CASE ( add_proof_to_reconcile  )

Definition at line 1450 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/16]

BOOST_AUTO_TEST_CASE ( block_reconcile_initial_vote  )

Definition at line 2217 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/16]

BOOST_AUTO_TEST_CASE ( block_vote_finalization_tip  )

Definition at line 1966 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/16]

BOOST_AUTO_TEST_CASE ( compute_staking_rewards  )

Definition at line 2260 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/16]

BOOST_AUTO_TEST_CASE ( destructor  )

Definition at line 1426 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/16]

BOOST_AUTO_TEST_CASE ( event_loop  )

Definition at line 1342 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/16]

BOOST_AUTO_TEST_CASE ( local_proof_status  )

Definition at line 2377 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/16]

BOOST_AUTO_TEST_CASE ( min_avaproofs_messages  )

Definition at line 1823 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/16]

BOOST_AUTO_TEST_CASE ( proof_record  )

Definition at line 1505 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/16]

BOOST_AUTO_TEST_CASE ( quorum_detection  )

Definition at line 1589 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/16]

BOOST_AUTO_TEST_CASE ( quorum_detection_parameter_validation  )

Definition at line 1764 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/16]

BOOST_AUTO_TEST_CASE ( quorum_diversity  )

Definition at line 1278 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/16]

BOOST_AUTO_TEST_CASE ( reconcileOrFinalize  )

Definition at line 2465 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/16]

BOOST_AUTO_TEST_CASE ( stake_contender_local_winners  )

Definition at line 2814 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [15/16]

BOOST_AUTO_TEST_CASE ( stake_contenders  )

Definition at line 2548 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [16/16]

BOOST_AUTO_TEST_CASE ( vote_map_comparator  )

Definition at line 2127 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( dont_poll_invalid_item  ,
,
VoteItemProviders   
)

Definition at line 1087 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( item_null  ,
,
NullableVoteItemProviders   
)

Definition at line 651 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( item_reconcile_twice  ,
,
VoteItemProviders   
)

Definition at line 577 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( item_zero  ,
,
Uint256VoteItemProviders   
)

Definition at line 672 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( multi_item_register  ,
,
VoteItemProviders   
)

Definition at line 841 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_and_response  ,
,
VoteItemProviders   
)

Definition at line 933 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_inflight_count  ,
,
VoteItemProviders   
)

Definition at line 1224 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [8/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_inflight_timeout  ,
,
VoteItemProviders   
)

Definition at line 1167 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [9/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( vote_item_register  ,
,
VoteItemProviders   
)

Definition at line 694 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [10/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( voteitemupdate  ,
,
VoteItemProviders   
)

Definition at line 550 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [11/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( voting_parameters  ,
,
VoteItemProviders   
)

Definition at line 1882 of file processor_tests.cpp.

Here is the call graph for this function: