Fabcoin Core  0.16.2
P2P Digital Currency
Namespaces | Functions | Variables
createRandomTest.cpp File Reference
#include <string>
#include <iostream>
#include <libdevcore/CommonData.h>
#include <test/libtesteth/TestHelper.h>
#include <test/fuzzTesting/fuzzHelper.h>
#include <libevm/VMFactory.h>
#include <libdevcore/Common.h>
Include dependency graph for createRandomTest.cpp:

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::test
 

Functions

void fillRandomTest (std::function< void(json_spirit::mValue &, bool)> _doTests, std::string const &_testString, bool _debug=false)
 
int checkRandomTest (std::function< void(json_spirit::mValue &, bool)> _doTests, json_spirit::mValue &_value, bool _debug=false)
 
int dev::test::createRandomTest (std::vector< char * > const &_parameters)
 

Variables

std::string const c_testExampleStateTest
 
std::string const c_testExampleTransactionTest
 
std::string const c_testExampleVMTest
 
std::string const c_testExampleBlockchainTest
 
std::string const c_testExampleRLPTest
 

Detailed Description

Author
Dimitry Khokhlov winsv.nosp@m.ega@.nosp@m.mail..nosp@m.ru
Date
2015

Definition in file createRandomTest.cpp.

Function Documentation

int checkRandomTest ( std::function< void(json_spirit::mValue &, bool)>  _doTests,
json_spirit::mValue _value,
bool  _debug = false 
)

Definition at line 138 of file createRandomTest.cpp.

Here is the caller graph for this function:

void fillRandomTest ( std::function< void(json_spirit::mValue &, bool)>  _doTests,
std::string const &  _testString,
bool  _debug = false 
)

Definition at line 174 of file createRandomTest.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

std::string const c_testExampleBlockchainTest

Definition at line 397 of file createRandomTest.cpp.

std::string const c_testExampleRLPTest
Initial value:
= R"(
{
"randomRLPTest" : {
"out" : "[RLP]"
}
}
)"

Definition at line 389 of file createRandomTest.cpp.

std::string const c_testExampleStateTest

Definition at line 310 of file createRandomTest.cpp.

std::string const c_testExampleTransactionTest
Initial value:
= R"(
{
"randomTransactionTest" : {
"transaction" :
{
"data" : "[CODE]",
"gasLimit" : "[HEX]",
"gasPrice" : "[HEX]",
"nonce" : "[HEX]",
"to" : "[HASH20]",
"value" : "[HEX]",
"v" : "[V]",
"r" : "[0xHASH32]",
"s" : "[0xHASH32]"
}
}
}
)"

Definition at line 291 of file createRandomTest.cpp.

std::string const c_testExampleVMTest

Definition at line 357 of file createRandomTest.cpp.