Bitcoin ABC 0.32.4
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 <validation.h>
#include <avalanche/test/util.h>
#include <test/util/net.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 489 of file processor_tests.cpp.

◆ Uint256VoteItemProviders

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

Definition at line 491 of file processor_tests.cpp.

◆ VoteItemProviders

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

Definition at line 487 of file processor_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/16]

BOOST_AUTO_TEST_CASE ( add_proof_to_reconcile  )

Definition at line 1407 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 2178 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 1927 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 2222 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 1383 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 1299 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 2349 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 1782 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 1462 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 1546 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 1723 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 1235 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 2437 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 2844 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 2520 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 2088 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 1042 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( item_null  ,
,
NullableVoteItemProviders   
)

Definition at line 600 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( item_reconcile_twice  ,
,
VoteItemProviders   
)

Definition at line 523 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 623 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( multi_item_register  ,
,
VoteItemProviders   
)

Definition at line 796 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_and_response  ,
,
VoteItemProviders   
)

Definition at line 888 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_inflight_count  ,
,
VoteItemProviders   
)

Definition at line 1181 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 1122 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 647 of file processor_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [10/11]

BOOST_AUTO_TEST_CASE_TEMPLATE ( voteitemupdate  ,
,
VoteItemProviders   
)

Definition at line 496 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 1841 of file processor_tests.cpp.

Here is the call graph for this function: