Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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 <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, 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 (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)
 

Typedef Documentation

◆ VoteItemProviders

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

Definition at line 443 of file processor_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/15]

BOOST_AUTO_TEST_CASE ( add_proof_to_reconcile  )

Definition at line 1291 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 2059 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 1808 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 2102 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 1267 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 1183 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 2219 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 1664 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 1346 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 1430 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 1605 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 1119 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 2307 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/15]

BOOST_AUTO_TEST_CASE ( stake_contenders  )

Definition at line 2390 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_comparator  )

Definition at line 1969 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  ,
P  ,
VoteItemProviders   
)

Definition at line 967 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  ,
P  ,
VoteItemProviders   
)

Definition at line 548 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( item_reconcile_twice  ,
P  ,
VoteItemProviders   
)

Definition at line 473 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  ,
P  ,
VoteItemProviders   
)

Definition at line 719 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( poll_and_response  ,
P  ,
VoteItemProviders   
)

Definition at line 813 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  ,
P  ,
VoteItemProviders   
)

Definition at line 1065 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  ,
P  ,
VoteItemProviders   
)

Definition at line 1008 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  ,
P  ,
VoteItemProviders   
)

Definition at line 569 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [9/10]

BOOST_AUTO_TEST_CASE_TEMPLATE ( voteitemupdate  ,
P  ,
VoteItemProviders   
)

Definition at line 446 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  ,
P  ,
VoteItemProviders   
)

Definition at line 1723 of file processor_tests.cpp.

Here is the call graph for this function: