Classes | Namespaces | Macros | Typedefs | Functions | Variables
pointertest.cpp File Reference
#include "unittest.h"
#include "rapidjson/pointer.h"
#include "rapidjson/stringbuffer.h"
#include <sstream>
Include dependency graph for pointertest.cpp:

Go to the source code of this file.

Classes

class  myjson::MyAllocator
 

Namespaces

 myjson
 

Macros

#define INDEX(i)   { #i, static_cast<SizeType>(sizeof(#i) - 1), i }
 
#define NAME(s)   { s, static_cast<SizeType>(sizeof(s) / sizeof(s[0]) - 1), kPointerInvalidIndex }
 

Typedefs

typedef rapidjson::GenericDocument< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< MyAllocator >, MyAllocator > myjson::Document
 
typedef rapidjson::GenericPointer< ::myjson::Document::ValueType, MyAllocator > myjson::Pointer
 
typedef ::myjson::Document::ValueType myjson::Value
 

Functions

 TEST (Pointer, DefaultConstructor)
 
 TEST (Pointer, Parse)
 
 TEST (Pointer, Parse_URIFragment)
 
 TEST (Pointer, Stringify)
 
 TEST (Pointer, ConstructorWithToken)
 
 TEST (Pointer, CopyConstructor)
 
 TEST (Pointer, Assignment)
 
 TEST (Pointer, Append)
 
 TEST (Pointer, Equality)
 
 TEST (Pointer, Inequality)
 
 TEST (Pointer, Create)
 
 TEST (Pointer, Get)
 
 TEST (Pointer, GetWithDefault)
 
 TEST (Pointer, GetWithDefault_NoAllocator)
 
 TEST (Pointer, Set)
 
 TEST (Pointer, Set_NoAllocator)
 
 TEST (Pointer, Swap)
 
 TEST (Pointer, Swap_NoAllocator)
 
 TEST (Pointer, Erase)
 
 TEST (Pointer, CreateValueByPointer)
 
 TEST (Pointer, CreateValueByPointer_NoAllocator)
 
 TEST (Pointer, GetValueByPointer)
 
 TEST (Pointer, GetValueByPointerWithDefault_Pointer)
 
 TEST (Pointer, GetValueByPointerWithDefault_String)
 
 TEST (Pointer, GetValueByPointerWithDefault_Pointer_NoAllocator)
 
 TEST (Pointer, GetValueByPointerWithDefault_String_NoAllocator)
 
 TEST (Pointer, SetValueByPointer_Pointer)
 
 TEST (Pointer, SetValueByPointer_String)
 
 TEST (Pointer, SetValueByPointer_Pointer_NoAllocator)
 
 TEST (Pointer, SetValueByPointer_String_NoAllocator)
 
 TEST (Pointer, SwapValueByPointer)
 
 TEST (Pointer, SwapValueByPointer_NoAllocator)
 
 TEST (Pointer, EraseValueByPointer_Pointer)
 
 TEST (Pointer, EraseValueByPointer_String)
 
 TEST (Pointer, Ambiguity)
 
 TEST (Pointer, Issue483)
 

Variables

static const char kJson []
 
static const Pointer::Token kTokens [] = { NAME("foo"), INDEX(0) }
 

Macro Definition Documentation

#define INDEX (   i)    { #i, static_cast<SizeType>(sizeof(#i) - 1), i }

Definition at line 445 of file pointertest.cpp.

#define NAME (   s)    { s, static_cast<SizeType>(sizeof(s) / sizeof(s[0]) - 1), kPointerInvalidIndex }

Definition at line 444 of file pointertest.cpp.

Function Documentation

TEST ( Pointer  ,
DefaultConstructor   
)

Definition at line 35 of file pointertest.cpp.

TEST ( Pointer  ,
Parse   
)

Definition at line 41 of file pointertest.cpp.

TEST ( Pointer  ,
Parse_URIFragment   
)

Definition at line 190 of file pointertest.cpp.

TEST ( Pointer  ,
Stringify   
)

Definition at line 401 of file pointertest.cpp.

TEST ( Pointer  ,
ConstructorWithToken   
)

Definition at line 452 of file pointertest.cpp.

TEST ( Pointer  ,
CopyConstructor   
)

Definition at line 463 of file pointertest.cpp.

TEST ( Pointer  ,
Assignment   
)

Definition at line 490 of file pointertest.cpp.

TEST ( Pointer  ,
Append   
)

Definition at line 527 of file pointertest.cpp.

TEST ( Pointer  ,
Equality   
)

Definition at line 557 of file pointertest.cpp.

TEST ( Pointer  ,
Inequality   
)

Definition at line 565 of file pointertest.cpp.

TEST ( Pointer  ,
Create   
)

Definition at line 573 of file pointertest.cpp.

TEST ( Pointer  ,
Get   
)

Definition at line 613 of file pointertest.cpp.

TEST ( Pointer  ,
GetWithDefault   
)

Definition at line 641 of file pointertest.cpp.

TEST ( Pointer  ,
GetWithDefault_NoAllocator   
)

Definition at line 694 of file pointertest.cpp.

TEST ( Pointer  ,
Set   
)

Definition at line 746 of file pointertest.cpp.

TEST ( Pointer  ,
Set_NoAllocator   
)

Definition at line 806 of file pointertest.cpp.

TEST ( Pointer  ,
Swap   
)

Definition at line 865 of file pointertest.cpp.

TEST ( Pointer  ,
Swap_NoAllocator   
)

Definition at line 874 of file pointertest.cpp.

TEST ( Pointer  ,
Erase   
)

Definition at line 882 of file pointertest.cpp.

TEST ( Pointer  ,
CreateValueByPointer   
)

Definition at line 921 of file pointertest.cpp.

TEST ( Pointer  ,
CreateValueByPointer_NoAllocator   
)

Definition at line 935 of file pointertest.cpp.

TEST ( Pointer  ,
GetValueByPointer   
)

Definition at line 948 of file pointertest.cpp.

TEST ( Pointer  ,
GetValueByPointerWithDefault_Pointer   
)

Definition at line 981 of file pointertest.cpp.

TEST ( Pointer  ,
GetValueByPointerWithDefault_String   
)

Definition at line 1034 of file pointertest.cpp.

TEST ( Pointer  ,
GetValueByPointerWithDefault_Pointer_NoAllocator   
)

Definition at line 1087 of file pointertest.cpp.

TEST ( Pointer  ,
GetValueByPointerWithDefault_String_NoAllocator   
)

Definition at line 1139 of file pointertest.cpp.

TEST ( Pointer  ,
SetValueByPointer_Pointer   
)

Definition at line 1191 of file pointertest.cpp.

TEST ( Pointer  ,
SetValueByPointer_String   
)

Definition at line 1248 of file pointertest.cpp.

TEST ( Pointer  ,
SetValueByPointer_Pointer_NoAllocator   
)

Definition at line 1305 of file pointertest.cpp.

TEST ( Pointer  ,
SetValueByPointer_String_NoAllocator   
)

Definition at line 1361 of file pointertest.cpp.

TEST ( Pointer  ,
SwapValueByPointer   
)

Definition at line 1417 of file pointertest.cpp.

TEST ( Pointer  ,
SwapValueByPointer_NoAllocator   
)

Definition at line 1430 of file pointertest.cpp.

TEST ( Pointer  ,
EraseValueByPointer_Pointer   
)

Definition at line 1442 of file pointertest.cpp.

TEST ( Pointer  ,
EraseValueByPointer_String   
)

Definition at line 1457 of file pointertest.cpp.

TEST ( Pointer  ,
Ambiguity   
)

Definition at line 1472 of file pointertest.cpp.

TEST ( Pointer  ,
Issue483   
)

Definition at line 1518 of file pointertest.cpp.

Variable Documentation

const char kJson[]
static
Initial value:
= "{\n"
" \"foo\":[\"bar\", \"baz\"],\n"
" \"\" : 0,\n"
" \"a/b\" : 1,\n"
" \"c%d\" : 2,\n"
" \"e^f\" : 3,\n"
" \"g|h\" : 4,\n"
" \"i\\\\j\" : 5,\n"
" \"k\\\"l\" : 6,\n"
" \" \" : 7,\n"
" \"m~n\" : 8\n"
"}"

Definition at line 22 of file pointertest.cpp.

const Pointer::Token kTokens[] = { NAME("foo"), INDEX(0) }
static

Definition at line 447 of file pointertest.cpp.



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