Bitcoin Core  22.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/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 {3}
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/7]

BOOST_AUTO_TEST_CASE ( EmptyBlockRoundTripTest  )

Definition at line 259 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 138 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 55 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 208 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 326 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 341 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 303 of file blockencodings_tests.cpp.

Here is the call graph for this function:

◆ BuildBlockTestCase()

static CBlock BuildBlockTestCase ( )
static

Definition at line 19 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 15 of file blockencodings_tests.cpp.

◆ SHARED_TX_OFFSET

constexpr long SHARED_TX_OFFSET {3}
constexpr

Definition at line 53 of file blockencodings_tests.cpp.