Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Functions | Variables
blockencodings_tests.cpp File Reference
#include <blockencodings.h>
#include <chainparams.h>
#include <consensus/merkle.h>
#include <pow.h>
#include <streams.h>
#include <test/util/random.h>
#include <test/util/txmempool.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_test.hpp>
Include dependency graph for blockencodings_tests.cpp:

Go to the source code of this file.

Classes

class  TestHeaderAndShortIDs
 

Functions

static CMutableTransaction BuildTransactionTestCase ()
 
static CBlock BuildBlockTestCase (FastRandomContext &ctx)
 
 BOOST_AUTO_TEST_CASE (SimpleRoundTripTest)
 
 BOOST_AUTO_TEST_CASE (NonCoinbasePreforwardRTTest)
 
 BOOST_AUTO_TEST_CASE (SufficientPreforwardRTTest)
 
 BOOST_AUTO_TEST_CASE (EmptyBlockRoundTripTest)
 
 BOOST_AUTO_TEST_CASE (ReceiveWithExtraTransactions)
 
 BOOST_AUTO_TEST_CASE (TransactionsRequestSerializationTest)
 
 BOOST_AUTO_TEST_CASE (TransactionsRequestDeserializationMaxTest)
 
 BOOST_AUTO_TEST_CASE (TransactionsRequestDeserializationOverflowTest)
 

Variables

const std::vector< CTransactionRefempty_extra_txn
 
constexpr long SHARED_TX_OFFSET {4}
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( EmptyBlockRoundTripTest  )

Definition at line 269 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/8]

BOOST_AUTO_TEST_CASE ( NonCoinbasePreforwardRTTest  )

Definition at line 146 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( ReceiveWithExtraTransactions  )

Definition at line 310 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/8]

BOOST_AUTO_TEST_CASE ( SimpleRoundTripTest  )

Definition at line 62 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/8]

BOOST_AUTO_TEST_CASE ( SufficientPreforwardRTTest  )

Definition at line 217 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/8]

BOOST_AUTO_TEST_CASE ( TransactionsRequestDeserializationMaxTest  )

Definition at line 380 of file blockencodings_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( TransactionsRequestDeserializationOverflowTest  )

Definition at line 395 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( TransactionsRequestSerializationTest  )

Definition at line 357 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BuildBlockTestCase()

static CBlock BuildBlockTestCase ( FastRandomContext ctx)
static

Definition at line 30 of file blockencodings_tests.cpp.

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

◆ BuildTransactionTestCase()

static CMutableTransaction BuildTransactionTestCase ( )
static

Definition at line 21 of file blockencodings_tests.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ empty_extra_txn

const std::vector<CTransactionRef> empty_extra_txn

Definition at line 17 of file blockencodings_tests.cpp.

◆ SHARED_TX_OFFSET

constexpr long SHARED_TX_OFFSET {4}
constexpr

Definition at line 60 of file blockencodings_tests.cpp.