Classes | Macros | Functions
valuetest.cpp File Reference
#include "unittest.h"
#include "rapidjson/document.h"
#include <algorithm>
Include dependency graph for valuetest.cpp:

Go to the source code of this file.

Classes

struct  TerminateHandler< e >
 
struct  ValueIntComparer
 

Macros

#define TEST_TERMINATION(e, json)
 

Functions

static void MergeDuplicateKey (Value &v, Value::AllocatorType &a)
 
 TEST (Value, Size)
 
 TEST (Value, DefaultConstructor)
 
 TEST (Value, AssignmentOperator)
 
 TEST (Value, EqualtoOperator)
 
 TEST (Value, CopyFrom)
 
 TEST (Value, Swap)
 
 TEST (Value, Null)
 
 TEST (Value, True)
 
 TEST (Value, False)
 
 TEST (Value, Int)
 
 TEST (Value, Uint)
 
 TEST (Value, Int64)
 
 TEST (Value, Uint64)
 
 TEST (Value, Double)
 
 TEST (Value, Float)
 
 TEST (Value, IsLosslessDouble)
 
 TEST (Value, IsLosslessFloat)
 
 TEST (Value, String)
 
 TEST (Value, SetStringNull)
 
 TEST (Value, Array)
 
 TEST (Value, ArrayHelper)
 
 TEST (Value, Object)
 
 TEST (Value, ObjectHelper)
 
 TEST (Value, EraseMember_String)
 
 TEST (Value, BigNestedArray)
 
 TEST (Value, BigNestedObject)
 
 TEST (Value, RemoveLastElement)
 
 TEST (Document, CrtAllocator)
 
 TEST (Value, AllocateShortString)
 
 TEST (Value, AcceptTerminationByHandler)
 
 TEST (Value, MergeDuplicateKey)
 
template<typename T , typename Allocator >
static void TestArray (T &x, Allocator &allocator)
 
template<typename Value >
void TestCopyFrom ()
 
template<typename A , typename B >
void TestEqual (const A &a, const B &b)
 
template<typename T , typename Allocator >
static void TestObject (T &x, Allocator &allocator)
 
static void TestShortStringOptimization (const char *str)
 
template<typename A , typename B >
void TestUnequal (const A &a, const B &b)
 

Macro Definition Documentation

#define TEST_TERMINATION (   e,
  json 
)
Value:
{\
EXPECT_FALSE(d.Parse(json).HasParseError()); \
Reader reader; \
TerminateHandler<e> h;\
EXPECT_FALSE(d.Accept(h));\
}
d
GenericReader< UTF8< char >, UTF8< char >, CrtAllocator > Reader
Definition: fwd.h:88
static const char json[]
GenericDocument< UTF8<> > Document
GenericDocument with UTF8 encoding.
Definition: document.h:2477

Definition at line 1719 of file valuetest.cpp.

Function Documentation

static void MergeDuplicateKey ( Value v,
Value::AllocatorType a 
)
static

Definition at line 1768 of file valuetest.cpp.

TEST ( Value  ,
Size   
)

Definition at line 26 of file valuetest.cpp.

TEST ( Value  ,
DefaultConstructor   
)

Definition at line 38 of file valuetest.cpp.

TEST ( Value  ,
AssignmentOperator   
)

Definition at line 121 of file valuetest.cpp.

TEST ( Value  ,
EqualtoOperator   
)

Definition at line 180 of file valuetest.cpp.

TEST ( Value  ,
CopyFrom   
)

Definition at line 283 of file valuetest.cpp.

TEST ( Value  ,
Swap   
)

Definition at line 288 of file valuetest.cpp.

TEST ( Value  ,
Null   
)

Definition at line 304 of file valuetest.cpp.

TEST ( Value  ,
True   
)

Definition at line 327 of file valuetest.cpp.

TEST ( Value  ,
False   
)

Definition at line 358 of file valuetest.cpp.

TEST ( Value  ,
Int   
)

Definition at line 384 of file valuetest.cpp.

TEST ( Value  ,
Uint   
)

Definition at line 444 of file valuetest.cpp.

TEST ( Value  ,
Int64   
)

Definition at line 490 of file valuetest.cpp.

TEST ( Value  ,
Uint64   
)

Definition at line 554 of file valuetest.cpp.

TEST ( Value  ,
Double   
)

Definition at line 606 of file valuetest.cpp.

TEST ( Value  ,
Float   
)

Definition at line 638 of file valuetest.cpp.

TEST ( Value  ,
IsLosslessDouble   
)

Definition at line 675 of file valuetest.cpp.

TEST ( Value  ,
IsLosslessFloat   
)

Definition at line 700 of file valuetest.cpp.

TEST ( Value  ,
String   
)

Definition at line 710 of file valuetest.cpp.

TEST ( Value  ,
SetStringNull   
)

Definition at line 860 of file valuetest.cpp.

TEST ( Value  ,
Array   
)

Definition at line 1058 of file valuetest.cpp.

TEST ( Value  ,
ArrayHelper   
)

Definition at line 1102 of file valuetest.cpp.

TEST ( Value  ,
Object   
)

Definition at line 1461 of file valuetest.cpp.

TEST ( Value  ,
ObjectHelper   
)

Definition at line 1483 of file valuetest.cpp.

TEST ( Value  ,
EraseMember_String   
)

Definition at line 1577 of file valuetest.cpp.

TEST ( Value  ,
BigNestedArray   
)

Definition at line 1595 of file valuetest.cpp.

TEST ( Value  ,
BigNestedObject   
)

Definition at line 1616 of file valuetest.cpp.

TEST ( Value  ,
RemoveLastElement   
)

Definition at line 1657 of file valuetest.cpp.

TEST ( Document  ,
CrtAllocator   
)

Definition at line 1670 of file valuetest.cpp.

TEST ( Value  ,
AllocateShortString   
)

Definition at line 1692 of file valuetest.cpp.

TEST ( Value  ,
AcceptTerminationByHandler   
)

Definition at line 1728 of file valuetest.cpp.

TEST ( Value  ,
MergeDuplicateKey   
)

Definition at line 1797 of file valuetest.cpp.

template<typename T , typename Allocator >
static void TestArray ( T x,
Allocator allocator 
)
static

Definition at line 903 of file valuetest.cpp.

template<typename Value >
void TestCopyFrom ( )

Definition at line 250 of file valuetest.cpp.

template<typename A , typename B >
void TestEqual ( const A &  a,
const B &  b 
)

Definition at line 165 of file valuetest.cpp.

template<typename T , typename Allocator >
static void TestObject ( T x,
Allocator allocator 
)
static

Definition at line 1194 of file valuetest.cpp.

static void TestShortStringOptimization ( const char *  str)
static

Definition at line 1681 of file valuetest.cpp.

template<typename A , typename B >
void TestUnequal ( const A &  a,
const B &  b 
)

Definition at line 173 of file valuetest.cpp.



choreo_rapidjson
Author(s):
autogenerated on Thu Jul 18 2019 03:59:09