Bitcoin Core  27.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 CBlock BuildBlockTestCase ()
 
 BOOST_AUTO_TEST_CASE (SimpleRoundTripTest)
 
 BOOST_AUTO_TEST_CASE (NonCoinbasePreforwardRTTest)
 
 BOOST_AUTO_TEST_CASE (SufficientPreforwardRTTest)
 
 BOOST_AUTO_TEST_CASE (EmptyBlockRoundTripTest)
 
 BOOST_AUTO_TEST_CASE (TransactionsRequestSerializationTest)
 
 BOOST_AUTO_TEST_CASE (TransactionsRequestDeserializationMaxTest)
 
 BOOST_AUTO_TEST_CASE (TransactionsRequestDeserializationOverflowTest)
 

Variables

std::vector< std::pair< uint256, CTransactionRef > > extra_txn
 
constexpr long SHARED_TX_OFFSET {4}
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/7]

BOOST_AUTO_TEST_CASE ( EmptyBlockRoundTripTest  )

Definition at line 261 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/7]

BOOST_AUTO_TEST_CASE ( NonCoinbasePreforwardRTTest  )

Definition at line 140 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/7]

BOOST_AUTO_TEST_CASE ( SimpleRoundTripTest  )

Definition at line 57 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/7]

BOOST_AUTO_TEST_CASE ( SufficientPreforwardRTTest  )

Definition at line 210 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [5/7]

BOOST_AUTO_TEST_CASE ( TransactionsRequestDeserializationMaxTest  )

Definition at line 328 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [6/7]

BOOST_AUTO_TEST_CASE ( TransactionsRequestDeserializationOverflowTest  )

Definition at line 343 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [7/7]

BOOST_AUTO_TEST_CASE ( TransactionsRequestSerializationTest  )

Definition at line 305 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BuildBlockTestCase()

static CBlock BuildBlockTestCase ( )
static

Definition at line 21 of file blockencodings_tests.cpp.

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

Variable Documentation

◆ extra_txn

std::vector<std::pair<uint256, CTransactionRef> > extra_txn

Definition at line 17 of file blockencodings_tests.cpp.

◆ SHARED_TX_OFFSET

constexpr long SHARED_TX_OFFSET {4}
constexpr

Definition at line 55 of file blockencodings_tests.cpp.