Fabcoin Core
0.16.2
P2P Digital Currency
|
Helper functions to work with json::spirit and test files. More...
#include <test/libtesteth/TestHelper.h>
#include <test/libtesteth/TestOutputHelper.h>
#include <test/libtesteth/Options.h>
#include <stdio.h>
#include <boost/algorithm/string/trim.hpp>
#include <libethereum/Client.h>
#include <test/libtesteth/Stats.h>
Go to the source code of this file.
Namespaces | |
dev | |
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Originally by René Nyffenegger. | |
dev::eth | |
dev::test | |
Functions | |
void | dev::eth::mine (Client &c, int numBlocks) |
void | dev::eth::connectClients (Client &c1, Client &c2) |
void | dev::eth::mine (Block &s, BlockChain const &_bc, SealEngineFace *_sealer) |
void | dev::eth::mine (BlockHeader &_bi, SealEngineFace *_sealer, bool _verify) |
string | dev::test::netIdToString (eth::Network _netId) |
eth::Network | dev::test::stringToNetId (string const &_netname) |
json_spirit::mObject | dev::test::fillJsonWithTransaction (Transaction const &_txn) |
json_spirit::mObject | dev::test::fillJsonWithState (State const &_state) |
json_spirit::mObject | dev::test::fillJsonWithState (State const &_state, eth::AccountMaskMap const &_map) |
json_spirit::mArray | dev::test::exportLog (eth::LogEntries _logs) |
u256 | dev::test::toInt (json_spirit::mValue const &_v) |
byte | dev::test::toByte (json_spirit::mValue const &_v) |
bytes | dev::test::importByteArray (std::string const &_str) |
bytes | dev::test::importData (json_spirit::mObject const &_o) |
void | dev::test::replaceLLLinState (json_spirit::mObject &_o) |
string | dev::test::compileLLL (string const &_code) |
bytes | dev::test::importCode (json_spirit::mObject &_o) |
LogEntries | dev::test::importLog (json_spirit::mArray &_a) |
void | dev::test::checkOutput (bytesConstRef _output, json_spirit::mObject &_o) |
void | dev::test::checkStorage (map< u256, u256 > _expectedStore, map< u256, u256 > _resultStore, Address _expectedAddr) |
void | dev::test::checkLog (LogEntries _resultLogs, LogEntries _expectedLogs) |
void | dev::test::checkCallCreates (eth::Transactions _resultCallCreates, eth::Transactions _expectedCallCreates) |
void | dev::test::userDefinedTest (std::function< void(json_spirit::mValue &, bool)> doTests) |
void | dev::test::executeTests (const string &_name, const string &_testPathAppendix, const string &_fillerPathAppendix, std::function< void(json_spirit::mValue &, bool)> doTests, bool _addFillerSuffix) |
void | dev::test::copyFile (std::string const &_source, std::string const &_destination) |
RLPStream | dev::test::createRLPStreamFromTransactionFields (json_spirit::mObject const &_tObj) |
LastHashes | dev::test::lastHashes (u256 _currentBlockNumber) |
dev::eth::BlockHeader | dev::test::constructHeader (h256 const &_parentHash, h256 const &_sha3Uncles, Address const &_author, h256 const &_stateRoot, h256 const &_transactionsRoot, h256 const &_receiptsRoot, dev::eth::LogBloom const &_logBloom, u256 const &_difficulty, u256 const &_number, u256 const &_gasLimit, u256 const &_gasUsed, u256 const &_timestamp, bytes const &_extraData) |
void | dev::test::updateEthashSeal (dev::eth::BlockHeader &_header, h256 const &_mixHash, h64 const &_nonce) |
Helper functions to work with json::spirit and test files.
Definition in file TestHelper.cpp.