Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

object.cpp File Reference
#include <stdint.h>
#include <vector>
#include <string>
#include <map>
#include <cassert>
#include <stdexcept>
#include <univalue.h>
+ Include dependency graph for object.cpp:

Go to the source code of this file.

Macros

#define BOOST_FIXTURE_TEST_SUITE(a, b)
 
#define BOOST_AUTO_TEST_CASE(funcName)   void funcName()
 
#define BOOST_AUTO_TEST_SUITE_END()
 
#define BOOST_CHECK(expr)   assert(expr)
 
#define BOOST_CHECK_EQUAL(v1, v2)   assert((v1) == (v2))
 
#define BOOST_CHECK_THROW(stmt, excMatch)
 
#define BOOST_CHECK_NO_THROW(stmt)
 

Functions

 BOOST_AUTO_TEST_CASE (univalue_constructor)
 
 BOOST_AUTO_TEST_CASE (univalue_typecheck)
 
 BOOST_AUTO_TEST_CASE (univalue_set)
 
 BOOST_AUTO_TEST_CASE (univalue_array)
 
 BOOST_AUTO_TEST_CASE (univalue_object)
 
 BOOST_AUTO_TEST_CASE (univalue_readwrite)
 
int main (int argc, char *argv[])
 

Variables

static const char * json1
 

Macro Definition Documentation

◆ BOOST_AUTO_TEST_CASE

#define BOOST_AUTO_TEST_CASE (   funcName)    void funcName()

Definition at line 15 of file object.cpp.

◆ BOOST_AUTO_TEST_SUITE_END

#define BOOST_AUTO_TEST_SUITE_END ( )

Definition at line 16 of file object.cpp.

◆ BOOST_CHECK

◆ BOOST_CHECK_EQUAL

#define BOOST_CHECK_EQUAL (   v1,
  v2 
)    assert((v1) == (v2))

◆ BOOST_CHECK_NO_THROW

#define BOOST_CHECK_NO_THROW (   stmt)
Value:
{ \
try { \
(stmt); \
} catch (...) { \
assert(0); \
} \
}

Definition at line 28 of file object.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ BOOST_CHECK_THROW

#define BOOST_CHECK_THROW (   stmt,
  excMatch 
)
Value:
{ \
try { \
(stmt); \
assert(0 && "No exception caught"); \
} catch (excMatch & e) { \
} catch (...) { \
assert(0 && "Wrong exception caught"); \
} \
}

Definition at line 19 of file object.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

◆ BOOST_FIXTURE_TEST_SUITE

#define BOOST_FIXTURE_TEST_SUITE (   a,
 
)

Definition at line 14 of file object.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/6]

BOOST_AUTO_TEST_CASE ( univalue_constructor  )

◆ BOOST_AUTO_TEST_CASE() [2/6]

BOOST_AUTO_TEST_CASE ( univalue_typecheck  )

◆ BOOST_AUTO_TEST_CASE() [3/6]

◆ BOOST_AUTO_TEST_CASE() [4/6]

◆ BOOST_AUTO_TEST_CASE() [5/6]

◆ BOOST_AUTO_TEST_CASE() [6/6]

BOOST_AUTO_TEST_CASE ( univalue_readwrite  )

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 386 of file object.cpp.

Variable Documentation

◆ json1

const char* json1
static
Initial value:
=
"[1.10000000,{\"key1\":\"str\\u0000\",\"key2\":800,\"key3\":{\"name\":\"martian http://test.com\"}}]"

Definition at line 338 of file object.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

Released under the MIT license