Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Macros | Functions | Variables
versionbits_tests.cpp File Reference
#include <chain.h>
#include <chainparams.h>
#include <consensus/params.h>
#include <test/util/random.h>
#include <test/util/setup_common.h>
#include <util/chaintype.h>
#include <versionbits.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for versionbits_tests.cpp:

Go to the source code of this file.

Classes

class  TestConditionChecker
 
class  TestDelayedActivationConditionChecker
 
class  TestAlwaysActiveConditionChecker
 
class  TestNeverActiveConditionChecker
 
class  VersionBitsTester
 
struct  BlockVersionTest
 

Macros

#define CHECKERS   6
 

Functions

static int32_t TestTime (int nHeight)
 
static std::string StateName (ThresholdState state)
 
 BOOST_AUTO_TEST_CASE (versionbits_test)
 
 BOOST_FIXTURE_TEST_CASE (versionbits_computeblockversion, BlockVersionTest)
 

Variables

static const Consensus::Params paramsDummy = Consensus::Params()
 

Macro Definition Documentation

◆ CHECKERS

#define CHECKERS   6

Definition at line 66 of file versionbits_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( versionbits_test  )

Definition at line 192 of file versionbits_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE()

BOOST_FIXTURE_TEST_CASE ( versionbits_computeblockversion  ,
BlockVersionTest   
)

Definition at line 421 of file versionbits_tests.cpp.

Here is the call graph for this function:

◆ StateName()

static std::string StateName ( ThresholdState  state)
static

Definition at line 18 of file versionbits_tests.cpp.

Here is the caller graph for this function:

◆ TestTime()

static int32_t TestTime ( int  nHeight)
static

Definition at line 16 of file versionbits_tests.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ paramsDummy

const Consensus::Params paramsDummy = Consensus::Params()
static

Definition at line 30 of file versionbits_tests.cpp.