diff options
author | Dimitry <winsvega@mail.ru> | 2015-06-03 22:21:29 +0800 |
---|---|---|
committer | Dimitry <winsvega@mail.ru> | 2015-06-17 22:01:31 +0800 |
commit | c787fa8decd9c43788b7331947c9d336b7861bcd (patch) | |
tree | c36b000c922ac89661bb0b5ae2941217491911f9 | |
parent | bcdc603bda6a83e68f88b6ab1cebb1e65a13f351 (diff) | |
download | dexon-solidity-c787fa8decd9c43788b7331947c9d336b7861bcd.tar.gz dexon-solidity-c787fa8decd9c43788b7331947c9d336b7861bcd.tar.zst dexon-solidity-c787fa8decd9c43788b7331947c9d336b7861bcd.zip |
FuzzTests: Boost Macro
-rw-r--r-- | TestHelper.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/TestHelper.h b/TestHelper.h index 8f0c73bf..eaeed619 100644 --- a/TestHelper.h +++ b/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) { |