MCPcopy Create free account
hub / github.com/LUX-Core/lux / ImportTest

Method ImportTest

src/cpp-ethereum/test/libtesteth/ImportTest.cpp:31–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29using namespace std;
30
31ImportTest::ImportTest(json_spirit::mObject& _o, bool isFiller, testType testTemplate):
32 m_statePre(0, OverlayDB(), eth::BaseState::Empty),
33 m_statePost(0, OverlayDB(), eth::BaseState::Empty),
34 m_testObject(_o),
35 m_testType(testTemplate)
36{
37 if (testTemplate == testType::StateTests || m_testType == testType::GeneralStateTest)
38 {
39 importEnv(_o["env"].get_obj());
40 importTransaction(_o["transaction"].get_obj());
41 importState(_o["pre"].get_obj(), m_statePre);
42 if (!isFiller && m_testType == testType::StateTests)
43 {
44 if (_o.count("post"))
45 importState(_o["post"].get_obj(), m_statePost);
46 else
47 importState(_o["postState"].get_obj(), m_statePost);
48 m_logsExpected = importLog(_o["logs"].get_array());
49 }
50 }
51}
52
53bytes ImportTest::executeTest()
54{

Callers

nothing calls this directly

Calls 3

importLogFunction · 0.85
OverlayDBClass · 0.50
countMethod · 0.45

Tested by

no test coverage detected