Bitcoin ABC  0.26.3
P2P Digital Currency
Classes | Functions
delegation_tests.cpp File Reference
#include <avalanche/delegation.h>
#include <avalanche/delegationbuilder.h>
#include <avalanche/test/util.h>
#include <avalanche/validation.h>
#include <util/strencodings.h>
#include <util/translation.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for delegation_tests.cpp:

Go to the source code of this file.

Classes

struct  TestVector
 

Functions

static void CheckDelegation (const Delegation &dg, const ProofRef &p, const CPubKey &expected_pubkey)
 
 BOOST_AUTO_TEST_CASE (verify_random)
 
 BOOST_AUTO_TEST_CASE (deserialization)
 
 BOOST_AUTO_TEST_CASE (level_limit)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( deserialization  )

Definition at line 83 of file delegation_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( level_limit  )

Definition at line 173 of file delegation_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( verify_random  )

Definition at line 31 of file delegation_tests.cpp.

Here is the call graph for this function:

◆ CheckDelegation()

static void CheckDelegation ( const Delegation dg,
const ProofRef p,
const CPubKey expected_pubkey 
)
static

Definition at line 20 of file delegation_tests.cpp.

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