Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
dev::test::ImportTest Class Reference

#include <ImportTest.h>

Collaboration diagram for dev::test::ImportTest:
[legend]

Classes

struct  transactionToExecute
 

Public Member Functions

 ImportTest (json_spirit::mObject &_o, bool isFiller, testType testTemplate=testType::StateTests)
 
void importEnv (json_spirit::mObject &_o)
 
void importTransaction (json_spirit::mObject const &_o)
 
bytes executeTest ()
 
int exportTest (bytes const &_output)
 
void checkGeneralTestSection (json_spirit::mObject const &_expects, std::vector< size_t > &_errorTransactions, std::string const &_network="") const
 

Static Public Member Functions

static void importState (json_spirit::mObject const &_o, eth::State &_state)
 
static void importState (json_spirit::mObject const &_o, eth::State &_state, eth::AccountMaskMap &o_mask)
 
static void importTransaction (json_spirit::mObject const &_o, eth::Transaction &o_tr)
 
static json_spirit::mObjectmakeAllFieldsHex (json_spirit::mObject &_o)
 
static int compareStates (eth::State const &_stateExpect, eth::State const &_statePost, eth::AccountMaskMap const _expectedStateOptions=eth::AccountMaskMap(), WhenError _throw=WhenError::Throw)
 

Public Attributes

eth::State m_statePre
 
eth::State m_statePost
 
eth::LogEntries m_logs
 
eth::LogEntries m_logsExpected
 

Private Types

typedef std::pair< eth::ExecutionResult, eth::TransactionReceiptexecOutput
 
using StateAndMap = std::pair< eth::State, eth::AccountMaskMap >
 
using TrExpectSection = std::pair< transactionToExecute, StateAndMap >
 

Private Member Functions

std::pair< eth::State, execOutputexecuteTransaction (eth::Network const _sealEngineNetwork, eth::EnvInfo const &_env, eth::State const &_preState, eth::Transaction const &_tr)
 
void checkGeneralTestSectionSearch (json_spirit::mObject const &_expects, std::vector< size_t > &_errorTransactions, std::string const &_network="", TrExpectSection *_search=NULL) const
 

Private Attributes

eth::EnvInfo m_envInfo
 
eth::Transaction m_transaction
 
std::vector< transactionToExecutem_transactions
 
json_spirit::mObjectm_testObject
 
testType m_testType
 

Detailed Description

Definition at line 40 of file ImportTest.h.

Member Typedef Documentation

Definition at line 64 of file ImportTest.h.

Definition at line 83 of file ImportTest.h.

Definition at line 84 of file ImportTest.h.

Constructor & Destructor Documentation

ImportTest::ImportTest ( json_spirit::mObject _o,
bool  isFiller,
testType  testTemplate = testType::StateTests 
)

Definition at line 31 of file ImportTest.cpp.

Here is the call graph for this function:

Member Function Documentation

void ImportTest::checkGeneralTestSection ( json_spirit::mObject const &  _expects,
std::vector< size_t > &  _errorTransactions,
std::string const &  _network = "" 
) const

Definition at line 465 of file ImportTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ImportTest::checkGeneralTestSectionSearch ( json_spirit::mObject const &  _expects,
std::vector< size_t > &  _errorTransactions,
std::string const &  _network = "",
TrExpectSection _search = NULL 
) const
private

Definition at line 470 of file ImportTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int ImportTest::compareStates ( eth::State const &  _stateExpect,
eth::State const &  _statePost,
eth::AccountMaskMap const  _expectedStateOptions = eth::AccountMaskMap(),
WhenError  _throw = WhenError::Throw 
)
static

Definition at line 356 of file ImportTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bytes ImportTest::executeTest ( )

Definition at line 53 of file ImportTest.cpp.

Here is the call graph for this function:

std::pair< eth::State, ImportTest::execOutput > ImportTest::executeTransaction ( eth::Network const  _sealEngineNetwork,
eth::EnvInfo const &  _env,
eth::State const &  _preState,
eth::Transaction const &  _tr 
)
private

Definition at line 178 of file ImportTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int ImportTest::exportTest ( bytes const &  _output)

Definition at line 554 of file ImportTest.cpp.

Here is the call graph for this function:

void ImportTest::importEnv ( json_spirit::mObject _o)

Definition at line 231 of file ImportTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static void dev::test::ImportTest::importState ( json_spirit::mObject const &  _o,
eth::State _state 
)
static

Here is the caller graph for this function:

static void dev::test::ImportTest::importState ( json_spirit::mObject const &  _o,
eth::State _state,
eth::AccountMaskMap o_mask 
)
static
static void dev::test::ImportTest::importTransaction ( json_spirit::mObject const &  _o,
eth::Transaction o_tr 
)
static

Here is the caller graph for this function:

void dev::test::ImportTest::importTransaction ( json_spirit::mObject const &  _o)
json_spirit::mObject & ImportTest::makeAllFieldsHex ( json_spirit::mObject _o)
static

Definition at line 205 of file ImportTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

eth::EnvInfo dev::test::ImportTest::m_envInfo
private

Definition at line 67 of file ImportTest.h.

eth::LogEntries dev::test::ImportTest::m_logs

Definition at line 60 of file ImportTest.h.

eth::LogEntries dev::test::ImportTest::m_logsExpected

Definition at line 61 of file ImportTest.h.

eth::State dev::test::ImportTest::m_statePost

Definition at line 59 of file ImportTest.h.

eth::State dev::test::ImportTest::m_statePre

Definition at line 58 of file ImportTest.h.

json_spirit::mObject& dev::test::ImportTest::m_testObject
private

Definition at line 87 of file ImportTest.h.

testType dev::test::ImportTest::m_testType
private

Definition at line 88 of file ImportTest.h.

eth::Transaction dev::test::ImportTest::m_transaction
private

Definition at line 68 of file ImportTest.h.

std::vector<transactionToExecute> dev::test::ImportTest::m_transactions
private

Definition at line 82 of file ImportTest.h.


The documentation for this class was generated from the following files: