Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Namespaces | Functions
BlockChainTests.cpp File Reference
#include <boost/filesystem/operations.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/filesystem.hpp>
#include <libdevcore/FileSystem.h>
#include <libethashseal/Ethash.h>
#include <test/libtesteth/TestHelper.h>
#include <test/libtesteth/BlockChainHelper.h>
#include <test/libtesteth/JsonSpiritHeaders.h>
#include <test/fuzzTesting/fuzzHelper.h>
Include dependency graph for BlockChainTests.cpp:

Go to the source code of this file.

Classes

struct  dev::test::ChainBranch
 

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 dev::test::compareBlocks (TestBlock const &_a, TestBlock const &_b)
 
mArray dev::test::writeTransactionsToJson (TransactionQueue const &_txsQueue)
 
mObject dev::test::writeBlockHeaderToJson (BlockHeader const &_bi)
 
void dev::test::overwriteBlockHeaderForTest (mObject const &_blObj, TestBlock &_block, ChainBranch const &_chainBranch)
 
void dev::test::overwriteUncleHeaderForTest (mObject &_uncleHeaderObj, TestBlock &_uncle, vector< TestBlock > const &_uncles, ChainBranch const &_chainBranch)
 
void dev::test::eraseJsonSectionForInvalidBlock (mObject &_blObj)
 
void dev::test::checkJsonSectionForInvalidBlock (mObject &_blObj)
 
void dev::test::checkExpectedException (mObject &_blObj, Exception const &_e)
 
void dev::test::checkBlocks (TestBlock const &_blockFromFields, TestBlock const &_blockFromRlp, string const &_testname)
 
void dev::test::doBlockchainTests (json_spirit::mValue &_v, bool _fillin)
 
void dev::test::overwriteUncleHeaderForTest (mObject &uncleHeaderObj, TestBlock &uncle, std::vector< TestBlock > const &uncles, ChainBranch const &_chainBranch)