mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
FuzzTests: Boost Macro
This commit is contained in:
parent
bcdc603bda
commit
c787fa8dec
16
TestHelper.h
16
TestHelper.h
@ -31,6 +31,19 @@
|
||||
#include <libevm/ExtVMFace.h>
|
||||
#include <libtestutils/Common.h>
|
||||
|
||||
#define DONTUSE_BOOST_MACROS
|
||||
#ifdef DONTUSE_BOOST_MACROS
|
||||
#define TBOOST_THROW_EXCEPTION(arg) throw;
|
||||
#define TBOOST_REQUIRE(arg) if(arg == false) throw;
|
||||
#define TBOOST_CHECK_MESSAGE(arg1, arg2) if(arg1 == false) throw;
|
||||
#define TBOOST_WARN_MESSAGE(arg1, arg2) throw;
|
||||
#else
|
||||
#define TBOOST_THROW_EXCEPTION(arg) BOOST_THROW_EXCEPTION(arg)
|
||||
#define TBOOST_REQUIRE(arg) BOOST_REQUIRE(arg)
|
||||
#define TBOOST_CHECK_MESSAGE(arg1, arg2) BOOST_CHECK_MESSAGE(arg1, arg2)
|
||||
#define TBOOST_WARN_MESSAGE(arg1, arg2) BOOST_WARN_MESSAGE(arg1, arg2)
|
||||
#endif
|
||||
|
||||
namespace dev
|
||||
{
|
||||
namespace eth
|
||||
@ -163,6 +176,9 @@ eth::LastHashes lastHashes(u256 _currentBlockNumber);
|
||||
json_spirit::mObject fillJsonWithState(eth::State _state);
|
||||
json_spirit::mObject fillJsonWithTransaction(eth::Transaction _txn);
|
||||
|
||||
//Fill Test Functions
|
||||
void doTransactionTests(json_spirit::mValue& _v, bool _fillin);
|
||||
|
||||
template<typename mapType>
|
||||
void checkAddresses(mapType& _expectedAddrs, mapType& _resultAddrs)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user