Bitcoin ABC  0.24.7
P2P Digital Currency
Namespaces | Functions
peermanager_tests.cpp File Reference
#include <avalanche/delegationbuilder.h>
#include <avalanche/peermanager.h>
#include <avalanche/proofbuilder.h>
#include <avalanche/proofcomparator.h>
#include <avalanche/test/util.h>
#include <script/standard.h>
#include <util/translation.h>
#include <validation.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for peermanager_tests.cpp:

Go to the source code of this file.

Namespaces

 avalanche
 

Functions

 BOOST_AUTO_TEST_CASE (select_peer_linear)
 
 BOOST_AUTO_TEST_CASE (select_peer_dichotomic)
 
 BOOST_AUTO_TEST_CASE (select_peer_random)
 
static void addNodeWithScore (avalanche::PeerManager &pm, NodeId node, uint32_t score)
 
 BOOST_AUTO_TEST_CASE (peer_probabilities)
 
 BOOST_AUTO_TEST_CASE (remove_peer)
 
 BOOST_AUTO_TEST_CASE (compact_slots)
 
 BOOST_AUTO_TEST_CASE (node_crud)
 
 BOOST_AUTO_TEST_CASE (node_binding)
 
 BOOST_AUTO_TEST_CASE (node_binding_reorg)
 
 BOOST_AUTO_TEST_CASE (proof_conflict)
 
 BOOST_AUTO_TEST_CASE (orphan_proofs)
 
 BOOST_AUTO_TEST_CASE (dangling_node)
 
 BOOST_AUTO_TEST_CASE (proof_accessors)
 
 BOOST_AUTO_TEST_CASE (conflicting_proof_rescan)
 
 BOOST_AUTO_TEST_CASE (conflicting_proof_selection)
 
 BOOST_AUTO_TEST_CASE (conflicting_orphans)
 

Function Documentation

◆ addNodeWithScore()

static void addNodeWithScore ( avalanche::PeerManager pm,
NodeId  node,
uint32_t  score 
)
static

Definition at line 186 of file peermanager_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BOOST_AUTO_TEST_CASE() [1/16]

BOOST_AUTO_TEST_CASE ( compact_slots  )

Definition at line 305 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/16]

BOOST_AUTO_TEST_CASE ( conflicting_orphans  )

Definition at line 945 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/16]

BOOST_AUTO_TEST_CASE ( conflicting_proof_rescan  )

Definition at line 797 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/16]

BOOST_AUTO_TEST_CASE ( conflicting_proof_selection  )

Definition at line 861 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/16]

BOOST_AUTO_TEST_CASE ( dangling_node  )

Definition at line 716 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/16]

BOOST_AUTO_TEST_CASE ( node_binding  )

Definition at line 394 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/16]

BOOST_AUTO_TEST_CASE ( node_binding_reorg  )

Definition at line 465 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/16]

BOOST_AUTO_TEST_CASE ( node_crud  )

Definition at line 334 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [9/16]

BOOST_AUTO_TEST_CASE ( orphan_proofs  )

Definition at line 609 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [10/16]

BOOST_AUTO_TEST_CASE ( peer_probabilities  )

Definition at line 193 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [11/16]

BOOST_AUTO_TEST_CASE ( proof_accessors  )

Definition at line 761 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [12/16]

BOOST_AUTO_TEST_CASE ( proof_conflict  )

Definition at line 531 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [13/16]

BOOST_AUTO_TEST_CASE ( remove_peer  )

Definition at line 229 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [14/16]

BOOST_AUTO_TEST_CASE ( select_peer_dichotomic  )

Definition at line 101 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [15/16]

BOOST_AUTO_TEST_CASE ( select_peer_linear  )

Definition at line 49 of file peermanager_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [16/16]

BOOST_AUTO_TEST_CASE ( select_peer_random  )

Definition at line 156 of file peermanager_tests.cpp.

Here is the call graph for this function: