Bitcoin Core 29.99.0
P2P Digital Currency
Functions | Variables
script_assets_tests.cpp File Reference
#include <primitives/transaction.h>
#include <script/interpreter.h>
#include <script/script.h>
#include <script/sigcache.h>
#include <script/sign.h>
#include <script/signingprovider.h>
#include <span.h>
#include <streams.h>
#include <test/util/json.h>
#include <util/check.h>
#include <util/fs.h>
#include <util/strencodings.h>
#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <utility>
#include <vector>
#include <boost/test/unit_test.hpp>
#include <univalue.h>
Include dependency graph for script_assets_tests.cpp:

Go to the source code of this file.

Functions

unsigned int ParseScriptFlags (std::string strFlags)
 
template<typename T >
CScript ToScript (const T &byte_container)
 
static CScript ScriptFromHex (const std::string &str)
 
static CMutableTransaction TxFromHex (const std::string &str)
 
static std::vector< CTxOutTxOutsFromJSON (const UniValue &univalue)
 
static CScriptWitness ScriptWitnessFromJSON (const UniValue &univalue)
 
static std::vector< unsigned int > AllConsensusFlags ()
 
static void AssetTest (const UniValue &test, SignatureCache &signature_cache)
 
 BOOST_AUTO_TEST_CASE (script_assets_test)
 

Variables

static const std::vector< unsigned int > ALL_CONSENSUS_FLAGS = AllConsensusFlags()
 Precomputed list of all valid combinations of consensus-relevant script validation flags. More...
 

Function Documentation

◆ AllConsensusFlags()

static std::vector< unsigned int > AllConsensusFlags ( )
static

Definition at line 74 of file script_assets_tests.cpp.

◆ AssetTest()

static void AssetTest ( const UniValue test,
SignatureCache signature_cache 
)
static

Definition at line 102 of file script_assets_tests.cpp.

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

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( script_assets_test  )

Definition at line 149 of file script_assets_tests.cpp.

Here is the call graph for this function:

◆ ParseScriptFlags()

unsigned int ParseScriptFlags ( std::string  strFlags)

Definition at line 76 of file transaction_tests.cpp.

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

◆ ScriptFromHex()

static CScript ScriptFromHex ( const std::string &  str)
static

Definition at line 39 of file script_assets_tests.cpp.

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

◆ ScriptWitnessFromJSON()

static CScriptWitness ScriptWitnessFromJSON ( const UniValue univalue)
static

Definition at line 63 of file script_assets_tests.cpp.

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

◆ ToScript()

template<typename T >
CScript ToScript ( const T &  byte_container)

Definition at line 33 of file script_assets_tests.cpp.

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

◆ TxFromHex()

static CMutableTransaction TxFromHex ( const std::string &  str)
static

Definition at line 44 of file script_assets_tests.cpp.

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

◆ TxOutsFromJSON()

static std::vector< CTxOut > TxOutsFromJSON ( const UniValue univalue)
static

Definition at line 51 of file script_assets_tests.cpp.

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

Variable Documentation

◆ ALL_CONSENSUS_FLAGS

const std::vector<unsigned int> ALL_CONSENSUS_FLAGS = AllConsensusFlags()
static

Precomputed list of all valid combinations of consensus-relevant script validation flags.

Definition at line 100 of file script_assets_tests.cpp.