RetroArch
Classes | Macros | Functions
readertest.cpp File Reference
#include "unittest.h"
#include "rapidjson/reader.h"
#include "rapidjson/internal/dtoa.h"
#include "rapidjson/internal/itoa.h"
#include "rapidjson/memorystream.h"
#include <limits>
#include <sstream>
Include dependency graph for readertest.cpp:

Classes

struct  ParseBoolHandler< expect >
 
struct  ParseIntHandler
 
struct  ParseUintHandler
 
struct  ParseInt64Handler
 
struct  ParseUint64Handler
 
struct  ParseDoubleHandler
 
struct  ParseStringHandler< Encoding >
 
struct  ParseArrayHandler< count >
 
struct  ParseObjectHandler
 
struct  ParseEmptyObjectHandler
 
struct  ParseMultipleRootHandler
 
class  CustomStringStream< Encoding >
 
class  IStreamWrapper
 
struct  IterativeParsingReaderHandler< Encoding >
 
struct  HandlerTerminateAtStartObject
 
struct  HandlerTerminateAtStartArray
 
struct  HandlerTerminateAtEndObject
 
struct  HandlerTerminateAtEndArray
 
struct  TerminateHandler< e >
 
struct  NumbersAsStringsHandler
 

Macros

#define TEST_INTEGER(Handler, str, x)
 
#define TEST_DOUBLE(fullPrecision, str, x)
 
#define TEST_NUMBER_ERROR(errorCode, str, errorOffset, streamPos)
 
#define TEST_STRING(Encoding, e, x)
 
#define ARRAY(...)   { __VA_ARGS__ }
 
#define TEST_STRINGARRAY(Encoding, utype, array, x)
 
#define TEST_STRINGARRAY2(Encoding, utype, earray, xarray)
 
#define TEST_STRING_ERROR(errorCode, str, errorOffset, streamPos)
 
#define ARRAY(...)   { __VA_ARGS__ }
 
#define TEST_STRINGENCODING_ERROR(Encoding, TargetEncoding, utype, array)
 
#define TEST_ARRAY_ERROR(errorCode, str, errorOffset)
 
#define TEST_ERROR(errorCode, str, errorOffset)
 
#define TESTERRORHANDLING(text, errorCode, offset)
 
#define TEST_TERMINATION(e, json)
 
#define TEST_NAN_INF(str, x)
 
#define TEST_NAN_INF_ERROR(errorCode, str, errorOffset)
 

Functions

 TEST (Reader, ParseTrue)
 
 TEST (Reader, ParseFalse)
 
 TEST (Reader, ParseNumber_Integer)
 
template<bool fullPrecision>
static void TestParseDouble ()
 
 TEST (Reader, ParseNumber_NormalPrecisionDouble)
 
 TEST (Reader, ParseNumber_FullPrecisionDouble)
 
 TEST (Reader, ParseNumber_NormalPrecisionError)
 
 TEST (Reader, ParseNumber_Error)
 
 TEST (Reader, ParseString)
 
 TEST (Reader, ParseString_Transcoding)
 
 TEST (Reader, ParseString_TranscodingWithValidation)
 
 TEST (Reader, ParseString_NonDestructive)
 
template<typename Encoding >
ParseErrorCode TestString (const typename Encoding::Ch *str)
 
 TEST (Reader, ParseString_Error)
 
 TEST (Reader, ParseEmptyArray)
 
 TEST (Reader, ParseArray)
 
 TEST (Reader, ParseArray_Error)
 
 TEST (Reader, ParseObject)
 
 TEST (Reader, Parse_EmptyObject)
 
template<unsigned parseFlags>
void TestMultipleRoot ()
 
 TEST (Reader, Parse_MultipleRoot)
 
 TEST (Reader, ParseIterative_MultipleRoot)
 
template<unsigned parseFlags>
void TestInsituMultipleRoot ()
 
 TEST (Reader, ParseInsitu_MultipleRoot)
 
 TEST (Reader, ParseInsituIterative_MultipleRoot)
 
 TEST (Reader, ParseDocument_Error)
 
 TEST (Reader, ParseValue_Error)
 
 TEST (Reader, ParseObject_Error)
 
 TEST (Reader, SkipWhitespace)
 
 TEST (Reader, CustomStringStream)
 
 TEST (Reader, Parse_IStreamWrapper_StringStream)
 
 TEST (Reader, IterativeParsing_ErrorHandling)
 
 TEST (Reader, IterativeParsing_General)
 
 TEST (Reader, IterativeParsing_Count)
 
 TEST (Reader, IterativeParsing_ShortCircuit)
 
 TEST (Reader, BaseReaderHandler_Default)
 
 TEST (Reader, ParseTerminationByHandler)
 
 TEST (Reader, ParseComments)
 
 TEST (Reader, ParseEmptyInlineComment)
 
 TEST (Reader, ParseEmptyOnelineComment)
 
 TEST (Reader, ParseMultipleCommentsInARow)
 
 TEST (Reader, InlineCommentsAreDisabledByDefault)
 
 TEST (Reader, OnelineCommentsAreDisabledByDefault)
 
 TEST (Reader, EofAfterOneLineComment)
 
 TEST (Reader, IncompleteMultilineComment)
 
 TEST (Reader, IncompleteMultilineComment2)
 
 TEST (Reader, UnrecognizedComment)
 
 TEST (Reader, NumbersAsStrings)
 
template<unsigned extraFlags>
void TestTrailingCommas ()
 
 TEST (Reader, TrailingCommas)
 
 TEST (Reader, TrailingCommasIterative)
 
template<unsigned extraFlags>
void TestMultipleTrailingCommaErrors ()
 
 TEST (Reader, MultipleTrailingCommaErrors)
 
 TEST (Reader, MultipleTrailingCommaErrorsIterative)
 
template<unsigned extraFlags>
void TestEmptyExceptForCommaErrors ()
 
 TEST (Reader, EmptyExceptForCommaErrors)
 
 TEST (Reader, EmptyExceptForCommaErrorsIterative)
 
template<unsigned extraFlags>
void TestTrailingCommaHandlerTermination ()
 
 TEST (Reader, TrailingCommaHandlerTermination)
 
 TEST (Reader, TrailingCommaHandlerTerminationIterative)
 
 TEST (Reader, ParseNanAndInfinity)
 

Macro Definition Documentation

◆ ARRAY [1/2]

#define ARRAY (   ...)    { __VA_ARGS__ }

◆ ARRAY [2/2]

#define ARRAY (   ...)    { __VA_ARGS__ }

◆ TEST_ARRAY_ERROR

#define TEST_ARRAY_ERROR (   errorCode,
  str,
  errorOffset 
)
Value:
{ \
int streamPos = errorOffset; \
char buffer[1001]; \
strncpy(buffer, str, 1000); \
InsituStringStream s(buffer); \
BaseReaderHandler<> h; \
GenericReader<UTF8<>, UTF8<>, CrtAllocator> reader; \
EXPECT_FALSE(reader.Parse(s, h)); \
EXPECT_EQ(errorCode, reader.GetParseErrorCode());\
EXPECT_EQ(errorOffset, reader.GetErrorOffset());\
EXPECT_EQ(streamPos, s.Tell());\
}
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
C-runtime library allocator.
Definition: allocators.h:62
GLdouble s
Definition: glext.h:6390
UTF-8 encoding.
Definition: encodings.h:96
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
Definition: video4linux2.c:51
const char *const str
Definition: portlistingparse.c:18

◆ TEST_DOUBLE

#define TEST_DOUBLE (   fullPrecision,
  str,
  x 
)
Value:
{ \
StringStream s(str); \
ParseDoubleHandler h; \
Reader reader; \
ASSERT_EQ(kParseErrorNone, reader.Parse<fullPrecision ? kParseFullPrecisionFlag : 0>(s, h).Code()); \
EXPECT_EQ(1u, h.step_); \
internal::Double e(x), a(h.actual_); \
if (fullPrecision) { \
EXPECT_EQ(e.Uint64Value(), a.Uint64Value()); \
if (e.Uint64Value() != a.Uint64Value()) \
printf(" String: %s\n Actual: %.17g\nExpected: %.17g\n", str, h.actual_, x); \
} \
else { \
EXPECT_EQ(e.Sign(), a.Sign()); /* for 0.0 != -0.0 */ \
EXPECT_DOUBLE_EQ(x, h.actual_); \
} \
}
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
GLdouble s
Definition: glext.h:6390
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
No error.
Definition: error.h:65
Parse number in full precision (but slower).
Definition: reader.h:151
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
const char *const str
Definition: portlistingparse.c:18
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ TEST_ERROR

#define TEST_ERROR (   errorCode,
  str,
  errorOffset 
)
Value:
{ \
int streamPos = errorOffset; \
char buffer[1001]; \
strncpy(buffer, str, 1000); \
InsituStringStream s(buffer); \
BaseReaderHandler<> h; \
Reader reader; \
EXPECT_FALSE(reader.Parse(s, h)); \
EXPECT_EQ(errorCode, reader.GetParseErrorCode());\
EXPECT_EQ(errorOffset, reader.GetErrorOffset());\
EXPECT_EQ(streamPos, s.Tell());\
}
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
GLdouble s
Definition: glext.h:6390
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
Definition: video4linux2.c:51
const char *const str
Definition: portlistingparse.c:18

◆ TEST_INTEGER

#define TEST_INTEGER (   Handler,
  str,
  x 
)
Value:
{ \
StringStream s(str); \
Handler h; \
Reader reader; \
reader.Parse(s, h); \
EXPECT_EQ(1u, h.step_); \
EXPECT_EQ(x, h.actual_); \
}
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
GLdouble s
Definition: glext.h:6390
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
const char *const str
Definition: portlistingparse.c:18

◆ TEST_NAN_INF

#define TEST_NAN_INF (   str,
  x 
)
Value:
{ \
{ \
StringStream s(str); \
ParseDoubleHandler h; \
Reader reader; \
ASSERT_EQ(kParseErrorNone, reader.Parse<kParseNanAndInfFlag>(s, h).Code()); \
EXPECT_EQ(1u, h.step_); \
internal::Double e(x), a(h.actual_); \
EXPECT_EQ(e.IsNan(), a.IsNan()); \
EXPECT_EQ(e.IsInf(), a.IsInf()); \
if (!e.IsNan()) \
EXPECT_EQ(e.Sign(), a.Sign()); \
} \
{ \
const char* json = "{ \"naninfdouble\": " str " } "; \
StringStream s(json); \
NumbersAsStringsHandler h(str); \
Reader reader; \
} \
{ \
char* json = StrDup("{ \"naninfdouble\": " str " } "); \
InsituStringStream s(json); \
NumbersAsStringsHandler h(str); \
Reader reader; \
free(json); \
} \
}
Ch * StrDup(const Ch *str)
Definition: unittest.h:73
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
Allow parsing NaN, Inf, Infinity, -Inf and -Infinity as doubles.
Definition: reader.h:155
In-situ(destructive) parsing.
Definition: reader.h:147
static const char json[]
Definition: namespacetest.cpp:32
GLdouble s
Definition: glext.h:6390
Parse all numbers (ints/doubles) as strings.
Definition: reader.h:153
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
No error.
Definition: error.h:65
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
const char *const str
Definition: portlistingparse.c:18
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6844

◆ TEST_NAN_INF_ERROR

#define TEST_NAN_INF_ERROR (   errorCode,
  str,
  errorOffset 
)
Value:
{ \
int streamPos = errorOffset; \
char buffer[1001]; \
strncpy(buffer, str, 1000); \
InsituStringStream s(buffer); \
BaseReaderHandler<> h; \
Reader reader; \
EXPECT_FALSE(reader.Parse<kParseNanAndInfFlag>(s, h)); \
EXPECT_EQ(errorCode, reader.GetParseErrorCode());\
EXPECT_EQ(errorOffset, reader.GetErrorOffset());\
EXPECT_EQ(streamPos, s.Tell());\
}
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
Allow parsing NaN, Inf, Infinity, -Inf and -Infinity as doubles.
Definition: reader.h:155
GLdouble s
Definition: glext.h:6390
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
Definition: video4linux2.c:51
const char *const str
Definition: portlistingparse.c:18

◆ TEST_NUMBER_ERROR

#define TEST_NUMBER_ERROR (   errorCode,
  str,
  errorOffset,
  streamPos 
)
Value:
{ \
char buffer[1001]; \
sprintf(buffer, "%s", str); \
InsituStringStream s(buffer); \
BaseReaderHandler<> h; \
Reader reader; \
EXPECT_FALSE(reader.Parse(s, h)); \
EXPECT_EQ(errorCode, reader.GetParseErrorCode());\
EXPECT_EQ(errorOffset, reader.GetErrorOffset());\
EXPECT_EQ(streamPos, s.Tell());\
}
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
GLdouble s
Definition: glext.h:6390
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
Definition: video4linux2.c:51
const char *const str
Definition: portlistingparse.c:18

◆ TEST_STRING

#define TEST_STRING (   Encoding,
  e,
  x 
)
Value:
{ \
Encoding::Ch* buffer = StrDup(x); \
GenericInsituStringStream<Encoding> is(buffer); \
ParseStringHandler<Encoding> h; \
GenericReader<Encoding, Encoding> reader; \
EXPECT_EQ(0, StrCmp<Encoding::Ch>(e, h.str_)); \
EXPECT_EQ(StrLen(e), h.length_); \
free(buffer); \
GenericStringStream<Encoding> s(x); \
ParseStringHandler<Encoding> h2; \
GenericReader<Encoding, Encoding> reader2; \
reader2.Parse(s, h2); \
EXPECT_EQ(0, StrCmp<Encoding::Ch>(e, h2.str_)); \
EXPECT_EQ(StrLen(e), h2.length_); \
}
Ch * StrDup(const Ch *str)
Definition: unittest.h:73
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
In-situ(destructive) parsing.
Definition: reader.h:147
GLdouble s
Definition: glext.h:6390
unsigned StrLen(const Ch *s)
Definition: unittest.h:60
GLint GLint GLint GLint GLint x
Definition: glext.h:6295
Validate encoding of JSON strings.
Definition: reader.h:148
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
Definition: video4linux2.c:51

◆ TEST_STRING_ERROR

#define TEST_STRING_ERROR (   errorCode,
  str,
  errorOffset,
  streamPos 
)
Value:
{\
GenericStringStream<UTF8<> > s(str);\
BaseReaderHandler<UTF8<> > h;\
GenericReader<UTF8<> , UTF8<> > reader;\
reader.Parse<kParseValidateEncodingFlag>(s, h);\
EXPECT_EQ(errorCode, reader.GetParseErrorCode());\
EXPECT_EQ(errorOffset, reader.GetErrorOffset());\
EXPECT_EQ(streamPos, s.Tell());\
}
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
GLdouble s
Definition: glext.h:6390
Validate encoding of JSON strings.
Definition: reader.h:148
UTF-8 encoding.
Definition: encodings.h:96
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
const char *const str
Definition: portlistingparse.c:18

◆ TEST_STRINGARRAY

#define TEST_STRINGARRAY (   Encoding,
  utype,
  array,
  x 
)
Value:
{ \
static const utype ue[] = array; \
static const Encoding::Ch* e = reinterpret_cast<const Encoding::Ch *>(&ue[0]); \
TEST_STRING(Encoding, e, x); \
}
Concept for encoding of Unicode characters.
GLint GLint GLint GLint GLint x
Definition: glext.h:6295

◆ TEST_STRINGARRAY2

#define TEST_STRINGARRAY2 (   Encoding,
  utype,
  earray,
  xarray 
)
Value:
{ \
static const utype ue[] = earray; \
static const utype xe[] = xarray; \
static const Encoding::Ch* e = reinterpret_cast<const Encoding::Ch *>(&ue[0]); \
static const Encoding::Ch* x = reinterpret_cast<const Encoding::Ch *>(&xe[0]); \
TEST_STRING(Encoding, e, x); \
}
Concept for encoding of Unicode characters.
GLint GLint GLint GLint GLint x
Definition: glext.h:6295

◆ TEST_STRINGENCODING_ERROR

#define TEST_STRINGENCODING_ERROR (   Encoding,
  TargetEncoding,
  utype,
  array 
)
Value:
{ \
static const utype ue[] = array; \
static const Encoding::Ch* e = reinterpret_cast<const Encoding::Ch *>(&ue[0]); \
EXPECT_EQ(kParseErrorStringInvalidEncoding, TestString<Encoding>(e));\
/* decode error */\
GenericStringStream<Encoding> s(e);\
BaseReaderHandler<TargetEncoding> h;\
GenericReader<Encoding, TargetEncoding> reader;\
reader.Parse(s, h);\
EXPECT_EQ(kParseErrorStringInvalidEncoding, reader.GetParseErrorCode());\
}
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
GLdouble s
Definition: glext.h:6390
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390
Invalid encoding in string.
Definition: error.h:82

◆ TEST_TERMINATION

#define TEST_TERMINATION (   e,
  json 
)
Value:
{\
Reader reader;\
TerminateHandler<e> h;\
StringStream is(json);\
EXPECT_FALSE(reader.Parse(is, h));\
EXPECT_EQ(kParseErrorTermination, reader.GetParseErrorCode());\
}
Parsing was terminated.
Definition: error.h:88
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
static const char json[]
Definition: namespacetest.cpp:32
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:8390

◆ TESTERRORHANDLING

#define TESTERRORHANDLING (   text,
  errorCode,
  offset 
)
Value:
{\
int streamPos = offset; \
StringStream json(text); \
BaseReaderHandler<> handler; \
Reader reader; \
reader.Parse<kParseIterativeFlag>(json, handler); \
EXPECT_TRUE(reader.HasParseError()); \
EXPECT_EQ(errorCode, reader.GetParseErrorCode()); \
EXPECT_EQ(offset, reader.GetErrorOffset()); \
EXPECT_EQ(streamPos, json.Tell()); \
}
static const char * reader(lua_State *L, void *ud, size_t *size)
Definition: luac.c:122
static const char json[]
Definition: namespacetest.cpp:32
JSON_Parser_EncodingDetectedHandler handler
Definition: jsonsax_full.h:561
GLintptr offset
Definition: glext.h:6560
Iterative(constant complexity in terms of function call stack size) parsing.
Definition: reader.h:149

Function Documentation

◆ TEST() [1/53]

TEST ( Reader  ,
ParseTrue   
)
Here is the call graph for this function:

◆ TEST() [2/53]

TEST ( Reader  ,
ParseFalse   
)
Here is the call graph for this function:

◆ TEST() [3/53]

TEST ( Reader  ,
ParseNumber_Integer   
)
Here is the call graph for this function:

◆ TEST() [4/53]

TEST ( Reader  ,
ParseNumber_NormalPrecisionDouble   
)

◆ TEST() [5/53]

TEST ( Reader  ,
ParseNumber_FullPrecisionDouble   
)

◆ TEST() [6/53]

TEST ( Reader  ,
ParseNumber_NormalPrecisionError   
)
Here is the call graph for this function:

◆ TEST() [7/53]

TEST ( Reader  ,
ParseNumber_Error   
)

◆ TEST() [8/53]

TEST ( Reader  ,
ParseString   
)
Here is the call graph for this function:

◆ TEST() [9/53]

TEST ( Reader  ,
ParseString_Transcoding   
)
Here is the call graph for this function:

◆ TEST() [10/53]

TEST ( Reader  ,
ParseString_TranscodingWithValidation   
)
Here is the call graph for this function:

◆ TEST() [11/53]

TEST ( Reader  ,
ParseString_NonDestructive   
)
Here is the call graph for this function:

◆ TEST() [12/53]

TEST ( Reader  ,
ParseString_Error   
)
Here is the call graph for this function:

◆ TEST() [13/53]

TEST ( Reader  ,
ParseEmptyArray   
)
Here is the call graph for this function:

◆ TEST() [14/53]

TEST ( Reader  ,
ParseArray   
)
Here is the call graph for this function:

◆ TEST() [15/53]

TEST ( Reader  ,
ParseArray_Error   
)

◆ TEST() [16/53]

TEST ( Reader  ,
ParseObject   
)
Here is the call graph for this function:

◆ TEST() [17/53]

TEST ( Reader  ,
Parse_EmptyObject   
)
Here is the call graph for this function:

◆ TEST() [18/53]

TEST ( Reader  ,
Parse_MultipleRoot   
)

◆ TEST() [19/53]

TEST ( Reader  ,
ParseIterative_MultipleRoot   
)

◆ TEST() [20/53]

TEST ( Reader  ,
ParseInsitu_MultipleRoot   
)

◆ TEST() [21/53]

TEST ( Reader  ,
ParseInsituIterative_MultipleRoot   
)

◆ TEST() [22/53]

TEST ( Reader  ,
ParseDocument_Error   
)

◆ TEST() [23/53]

TEST ( Reader  ,
ParseValue_Error   
)

◆ TEST() [24/53]

TEST ( Reader  ,
ParseObject_Error   
)
Here is the call graph for this function:

◆ TEST() [25/53]

TEST ( Reader  ,
SkipWhitespace   
)
Here is the call graph for this function:

◆ TEST() [26/53]

TEST ( Reader  ,
CustomStringStream   
)
Here is the call graph for this function:

◆ TEST() [27/53]

TEST ( Reader  ,
Parse_IStreamWrapper_StringStream   
)
Here is the call graph for this function:

◆ TEST() [28/53]

TEST ( Reader  ,
IterativeParsing_ErrorHandling   
)

◆ TEST() [29/53]

TEST ( Reader  ,
IterativeParsing_General   
)
Here is the call graph for this function:

◆ TEST() [30/53]

TEST ( Reader  ,
IterativeParsing_Count   
)
Here is the call graph for this function:

◆ TEST() [31/53]

TEST ( Reader  ,
IterativeParsing_ShortCircuit   
)
Here is the call graph for this function:

◆ TEST() [32/53]

TEST ( Reader  ,
BaseReaderHandler_Default   
)
Here is the call graph for this function:

◆ TEST() [33/53]

TEST ( Reader  ,
ParseTerminationByHandler   
)

◆ TEST() [34/53]

TEST ( Reader  ,
ParseComments   
)
Here is the call graph for this function:

◆ TEST() [35/53]

TEST ( Reader  ,
ParseEmptyInlineComment   
)
Here is the call graph for this function:

◆ TEST() [36/53]

TEST ( Reader  ,
ParseEmptyOnelineComment   
)
Here is the call graph for this function:

◆ TEST() [37/53]

TEST ( Reader  ,
ParseMultipleCommentsInARow   
)
Here is the call graph for this function:

◆ TEST() [38/53]

TEST ( Reader  ,
InlineCommentsAreDisabledByDefault   
)
Here is the call graph for this function:

◆ TEST() [39/53]

TEST ( Reader  ,
OnelineCommentsAreDisabledByDefault   
)
Here is the call graph for this function:

◆ TEST() [40/53]

TEST ( Reader  ,
EofAfterOneLineComment   
)
Here is the call graph for this function:

◆ TEST() [41/53]

TEST ( Reader  ,
IncompleteMultilineComment   
)
Here is the call graph for this function:

◆ TEST() [42/53]

TEST ( Reader  ,
IncompleteMultilineComment2   
)
Here is the call graph for this function:

◆ TEST() [43/53]

TEST ( Reader  ,
UnrecognizedComment   
)
Here is the call graph for this function:

◆ TEST() [44/53]

TEST ( Reader  ,
NumbersAsStrings   
)
Here is the call graph for this function:

◆ TEST() [45/53]

TEST ( Reader  ,
TrailingCommas   
)

◆ TEST() [46/53]

TEST ( Reader  ,
TrailingCommasIterative   
)

◆ TEST() [47/53]

TEST ( Reader  ,
MultipleTrailingCommaErrors   
)

◆ TEST() [48/53]

TEST ( Reader  ,
MultipleTrailingCommaErrorsIterative   
)

◆ TEST() [49/53]

TEST ( Reader  ,
EmptyExceptForCommaErrors   
)

◆ TEST() [50/53]

TEST ( Reader  ,
EmptyExceptForCommaErrorsIterative   
)

◆ TEST() [51/53]

TEST ( Reader  ,
TrailingCommaHandlerTermination   
)

◆ TEST() [52/53]

TEST ( Reader  ,
TrailingCommaHandlerTerminationIterative   
)

◆ TEST() [53/53]

TEST ( Reader  ,
ParseNanAndInfinity   
)

◆ TestEmptyExceptForCommaErrors()

template<unsigned extraFlags>
void TestEmptyExceptForCommaErrors ( )
Here is the call graph for this function:

◆ TestInsituMultipleRoot()

template<unsigned parseFlags>
void TestInsituMultipleRoot ( )
Here is the call graph for this function:

◆ TestMultipleRoot()

template<unsigned parseFlags>
void TestMultipleRoot ( )
Here is the call graph for this function:

◆ TestMultipleTrailingCommaErrors()

template<unsigned extraFlags>
void TestMultipleTrailingCommaErrors ( )
Here is the call graph for this function:

◆ TestParseDouble()

template<bool fullPrecision>
static void TestParseDouble ( )
static
Here is the call graph for this function:

◆ TestString()

template<typename Encoding >
ParseErrorCode TestString ( const typename Encoding::Ch *  str)
Here is the call graph for this function:

◆ TestTrailingCommaHandlerTermination()

template<unsigned extraFlags>
void TestTrailingCommaHandlerTermination ( )
Here is the call graph for this function:

◆ TestTrailingCommas()

template<unsigned extraFlags>
void TestTrailingCommas ( )
Here is the call graph for this function: