23 #include <boost/test/unit_test.hpp> 32 namespace dev {
namespace test {
139 std::unordered_map<h256, std::pair<bytes, bool>> getAux() {
return m_aux;}
146 myDB.insertAux(
h256(42), &value);
149 myDB.removeAux(
h256(42));
155 myDB.insertAux(
h256(43), &value);
209 std::ostringstream stream;
211 BOOST_CHECK_EQUAL(stream.str(),
"000000000000000000000000000000000000000000000000000000000000002a: 0x43 43\n000000000000000000000000000000000000000000000000000000000000002b: 0x43 43\n");
std::unordered_map< h256, std::string > get() const
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::hash for asio::adress
std::string toString(string32 const &_s)
Make normal string from fixed-length string.
bytes fromHex(std::string const &_s, WhenError _throw=WhenError::DontThrow)
bool kill(h256 const &_h)
std::vector< byte > bytes
BOOST_AUTO_TEST_CASE(kill)
void insert(h256 const &_h, bytesConstRef _v)
#define BOOST_FIXTURE_TEST_SUITE(a, b)
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_AUTO_TEST_SUITE_END()
bool exists(h256 const &_h) const
std::string lookup(h256 const &_h) const
Helper functions to work with json::spirit and test files.
#define BOOST_CHECK(expr)