Classes | Functions | Variables
prettywritertest.cpp File Reference
#include "unittest.h"
#include "rapidjson/reader.h"
#include "rapidjson/prettywriter.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/filewritestream.h"
#include <sstream>
Include dependency graph for prettywritertest.cpp:

Go to the source code of this file.

Classes

class  OStreamWrapper
 

Functions

 TEST (PrettyWriter, Basic)
 
 TEST (PrettyWriter, FormatOptions)
 
 TEST (PrettyWriter, SetIndent)
 
 TEST (PrettyWriter, String)
 
 TEST (PrettyWriter, OStreamWrapper)
 
 TEST (PrettyWriter, FileWriteStream)
 
 TEST (PrettyWriter, RawValue)
 
 TEST (PrettyWriter, InvalidEventSequence)
 
 TEST (PrettyWriter, NaN)
 
 TEST (PrettyWriter, Inf)
 
 TEST (PrettyWriter, Issue_889)
 

Variables

static const char kJson [] = "{\"hello\":\"world\",\"t\":true,\"f\":false,\"n\":null,\"i\":123,\"pi\":3.1416,\"a\":[1,2,3,-1],\"u64\":1234567890123456789,\"i64\":-1234567890123456789}"
 
static const char kPrettyJson []
 
static const char kPrettyJson_FormatOptions_SLA []
 

Function Documentation

TEST ( PrettyWriter  ,
Basic   
)

Definition at line 60 of file prettywritertest.cpp.

TEST ( PrettyWriter  ,
FormatOptions   
)

Definition at line 69 of file prettywritertest.cpp.

TEST ( PrettyWriter  ,
SetIndent   
)

Definition at line 79 of file prettywritertest.cpp.

TEST ( PrettyWriter  ,
String   
)

Definition at line 106 of file prettywritertest.cpp.

TEST ( PrettyWriter  ,
OStreamWrapper   
)

Definition at line 151 of file prettywritertest.cpp.

TEST ( PrettyWriter  ,
FileWriteStream   
)

Definition at line 167 of file prettywritertest.cpp.

TEST ( PrettyWriter  ,
RawValue   
)

Definition at line 192 of file prettywritertest.cpp.

TEST ( PrettyWriter  ,
InvalidEventSequence   
)

Definition at line 211 of file prettywritertest.cpp.

TEST ( PrettyWriter  ,
NaN   
)

Definition at line 262 of file prettywritertest.cpp.

TEST ( PrettyWriter  ,
Inf   
)

Definition at line 281 of file prettywritertest.cpp.

TEST ( PrettyWriter  ,
Issue_889   
)

Definition at line 305 of file prettywritertest.cpp.

Variable Documentation

const char kJson[] = "{\"hello\":\"world\",\"t\":true,\"f\":false,\"n\":null,\"i\":123,\"pi\":3.1416,\"a\":[1,2,3,-1],\"u64\":1234567890123456789,\"i64\":-1234567890123456789}"
static

Definition at line 28 of file prettywritertest.cpp.

const char kPrettyJson[]
static
Initial value:
=
"{\n"
" \"hello\": \"world\",\n"
" \"t\": true,\n"
" \"f\": false,\n"
" \"n\": null,\n"
" \"i\": 123,\n"
" \"pi\": 3.1416,\n"
" \"a\": [\n"
" 1,\n"
" 2,\n"
" 3,\n"
" -1\n"
" ],\n"
" \"u64\": 1234567890123456789,\n"
" \"i64\": -1234567890123456789\n"
"}"

Definition at line 29 of file prettywritertest.cpp.

const char kPrettyJson_FormatOptions_SLA[]
static
Initial value:
=
"{\n"
" \"hello\": \"world\",\n"
" \"t\": true,\n"
" \"f\": false,\n"
" \"n\": null,\n"
" \"i\": 123,\n"
" \"pi\": 3.1416,\n"
" \"a\": [1, 2, 3, -1],\n"
" \"u64\": 1234567890123456789,\n"
" \"i64\": -1234567890123456789\n"
"}"

Definition at line 47 of file prettywritertest.cpp.



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