Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <ImportTest.h>
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::mObject & | makeAllFieldsHex (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::TransactionReceipt > | execOutput |
using | StateAndMap = std::pair< eth::State, eth::AccountMaskMap > |
using | TrExpectSection = std::pair< transactionToExecute, StateAndMap > |
Private Member Functions | |
std::pair< eth::State, execOutput > | executeTransaction (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< transactionToExecute > | m_transactions |
json_spirit::mObject & | m_testObject |
testType | m_testType |
Definition at line 40 of file ImportTest.h.
|
private |
Definition at line 64 of file ImportTest.h.
|
private |
Definition at line 83 of file ImportTest.h.
|
private |
Definition at line 84 of file ImportTest.h.
ImportTest::ImportTest | ( | json_spirit::mObject & | _o, |
bool | isFiller, | ||
testType | testTemplate = testType::StateTests |
||
) |
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.
|
private |
Definition at line 470 of file ImportTest.cpp.
|
static |
Definition at line 356 of file ImportTest.cpp.
bytes ImportTest::executeTest | ( | ) |
|
private |
Definition at line 178 of file ImportTest.cpp.
int ImportTest::exportTest | ( | bytes const & | _output | ) |
void ImportTest::importEnv | ( | json_spirit::mObject & | _o | ) |
Definition at line 231 of file ImportTest.cpp.
|
static |
|
static |
|
static |
void dev::test::ImportTest::importTransaction | ( | json_spirit::mObject const & | _o | ) |
|
static |
Definition at line 205 of file ImportTest.cpp.
|
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.
|
private |
Definition at line 87 of file ImportTest.h.
|
private |
Definition at line 88 of file ImportTest.h.
|
private |
Definition at line 68 of file ImportTest.h.
|
private |
Definition at line 82 of file ImportTest.h.