Bitcoin ABC  0.22.12
P2P Digital Currency
Namespaces | Macros | Functions
processor_tests.cpp File Reference
#include <avalanche/processor.h>
#include <avalanche/delegationbuilder.h>
#include <avalanche/peermanager.h>
#include <avalanche/proofbuilder.h>
#include <chain.h>
#include <config.h>
#include <net_processing.h>
#include <util/time.h>
#include <validation.h>
#include <test/util/setup_common.h>
#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)
 

Functions

 BOOST_AUTO_TEST_CASE (vote_record)
 
 BOOST_AUTO_TEST_CASE (block_update)
 
 BOOST_AUTO_TEST_CASE (block_register)
 
 BOOST_AUTO_TEST_CASE (multi_block_register)
 
 BOOST_AUTO_TEST_CASE (poll_and_response)
 
 BOOST_AUTO_TEST_CASE (poll_inflight_timeout, *boost::unit_test::timeout(60))
 
 BOOST_AUTO_TEST_CASE (poll_inflight_count)
 
 BOOST_AUTO_TEST_CASE (quorum_diversity)
 
 BOOST_AUTO_TEST_CASE (event_loop)
 
 BOOST_AUTO_TEST_CASE (destructor)
 

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);
static constexpr NodeId NO_NODE
Special NodeId that represent no node.
Definition: net.h:116

Definition at line 166 of file processor_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/10]

BOOST_AUTO_TEST_CASE ( vote_record  )

Definition at line 172 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/10]

BOOST_AUTO_TEST_CASE ( block_update  )

Definition at line 272 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/10]

BOOST_AUTO_TEST_CASE ( block_register  )

Definition at line 298 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/10]

BOOST_AUTO_TEST_CASE ( multi_block_register  )

Definition at line 453 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/10]

BOOST_AUTO_TEST_CASE ( poll_and_response  )

Definition at line 554 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/10]

BOOST_AUTO_TEST_CASE ( poll_inflight_timeout  ,
boost::unit_test::timeout60 
)

Definition at line 687 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/10]

BOOST_AUTO_TEST_CASE ( poll_inflight_count  )

Definition at line 740 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/10]

BOOST_AUTO_TEST_CASE ( quorum_diversity  )

Definition at line 797 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/10]

BOOST_AUTO_TEST_CASE ( event_loop  )

Definition at line 864 of file processor_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/10]

BOOST_AUTO_TEST_CASE ( destructor  )

Definition at line 946 of file processor_tests.cpp.

Here is the call graph for this function: