Wire Sysio Wire Sysion 1.0.0
|
#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>
Go to the source code of this file.
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(...) |
#define | TEST_STRINGARRAY(Encoding, utype, array, x) |
#define | TEST_STRINGARRAY2(Encoding, utype, earray, xarray) |
#define | TEST_STRING_ERROR(errorCode, str, errorOffset, streamPos) |
#define | ARRAY(...) |
#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) | |
TEST (Reader, ParseNumber_NormalPrecisionDouble) | |
TEST (Reader, ParseNumber_FullPrecisionDouble) | |
TEST (Reader, ParseNumber_NormalPrecisionError) | |
TEST (Reader, ParseNumberError_NormalPrecisionDouble) | |
TEST (Reader, ParseNumberError_FullPrecisionDouble) | |
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, IterativePullParsing_General) | |
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) | |
#define ARRAY | ( | ... | ) |
#define ARRAY | ( | ... | ) |
#define TEST_ARRAY_ERROR | ( | errorCode, | |
str, | |||
errorOffset ) |
#define TEST_DOUBLE | ( | fullPrecision, | |
str, | |||
x ) |
#define TEST_ERROR | ( | errorCode, | |
str, | |||
errorOffset ) |
Definition at line 1231 of file readertest.cpp.
#define TEST_INTEGER | ( | Handler, | |
str, | |||
x ) |
#define TEST_NAN_INF | ( | str, | |
x ) |
#define TEST_NAN_INF_ERROR | ( | errorCode, | |
str, | |||
errorOffset ) |
#define TEST_NUMBER_ERROR | ( | errorCode, | |
str, | |||
errorOffset, | |||
streamPos ) |
#define TEST_STRING | ( | Encoding, | |
e, | |||
x ) |
#define TEST_STRING_ERROR | ( | errorCode, | |
str, | |||
errorOffset, | |||
streamPos ) |
#define TEST_STRINGARRAY | ( | Encoding, | |
utype, | |||
array, | |||
x ) |
#define TEST_STRINGARRAY2 | ( | Encoding, | |
utype, | |||
earray, | |||
xarray ) |
#define TEST_STRINGENCODING_ERROR | ( | Encoding, | |
TargetEncoding, | |||
utype, | |||
array ) |
#define TEST_TERMINATION | ( | e, | |
json ) |
Definition at line 1727 of file readertest.cpp.
#define TESTERRORHANDLING | ( | text, | |
errorCode, | |||
offset ) |
Definition at line 1406 of file readertest.cpp.
TEST | ( | Reader | , |
BaseReaderHandler_Default | ) |
Definition at line 1702 of file readertest.cpp.
TEST | ( | Reader | , |
CustomStringStream | ) |
Definition at line 1351 of file readertest.cpp.
TEST | ( | Reader | , |
EmptyExceptForCommaErrors | ) |
Definition at line 2096 of file readertest.cpp.
TEST | ( | Reader | , |
EmptyExceptForCommaErrorsIterative | ) |
TEST | ( | Reader | , |
EofAfterOneLineComment | ) |
Definition at line 1839 of file readertest.cpp.
TEST | ( | Reader | , |
IncompleteMultilineComment | ) |
Definition at line 1849 of file readertest.cpp.
TEST | ( | Reader | , |
IncompleteMultilineComment2 | ) |
Definition at line 1859 of file readertest.cpp.
TEST | ( | Reader | , |
InlineCommentsAreDisabledByDefault | ) |
Definition at line 1807 of file readertest.cpp.
TEST | ( | Reader | , |
IterativeParsing_Count | ) |
Definition at line 1554 of file readertest.cpp.
TEST | ( | Reader | , |
IterativeParsing_ErrorHandling | ) |
Definition at line 1419 of file readertest.cpp.
TEST | ( | Reader | , |
IterativeParsing_General | ) |
Definition at line 1517 of file readertest.cpp.
TEST | ( | Reader | , |
IterativeParsing_ShortCircuit | ) |
Definition at line 1651 of file readertest.cpp.
TEST | ( | Reader | , |
IterativePullParsing_General | ) |
Definition at line 1589 of file readertest.cpp.
TEST | ( | Reader | , |
MultipleTrailingCommaErrors | ) |
Definition at line 2064 of file readertest.cpp.
TEST | ( | Reader | , |
MultipleTrailingCommaErrorsIterative | ) |
TEST | ( | Reader | , |
NumbersAsStrings | ) |
Definition at line 1909 of file readertest.cpp.
TEST | ( | Reader | , |
OnelineCommentsAreDisabledByDefault | ) |
Definition at line 1830 of file readertest.cpp.
TEST | ( | Reader | , |
Parse_EmptyObject | ) |
Definition at line 1167 of file readertest.cpp.
TEST | ( | Reader | , |
Parse_IStreamWrapper_StringStream | ) |
Definition at line 1392 of file readertest.cpp.
TEST | ( | Reader | , |
Parse_MultipleRoot | ) |
Definition at line 1200 of file readertest.cpp.
TEST | ( | Reader | , |
ParseArray | ) |
Definition at line 1052 of file readertest.cpp.
TEST | ( | Reader | , |
ParseArray_Error | ) |
Definition at line 1062 of file readertest.cpp.
TEST | ( | Reader | , |
ParseComments | ) |
Definition at line 1756 of file readertest.cpp.
TEST | ( | Reader | , |
ParseDocument_Error | ) |
Definition at line 1245 of file readertest.cpp.
TEST | ( | Reader | , |
ParseEmptyArray | ) |
Definition at line 1042 of file readertest.cpp.
TEST | ( | Reader | , |
ParseEmptyInlineComment | ) |
Definition at line 1774 of file readertest.cpp.
TEST | ( | Reader | , |
ParseEmptyOnelineComment | ) |
Definition at line 1784 of file readertest.cpp.
TEST | ( | Reader | , |
ParseFalse | ) |
Definition at line 60 of file readertest.cpp.
TEST | ( | Reader | , |
ParseInsitu_MultipleRoot | ) |
Definition at line 1223 of file readertest.cpp.
TEST | ( | Reader | , |
ParseInsituIterative_MultipleRoot | ) |
TEST | ( | Reader | , |
ParseIterative_MultipleRoot | ) |
TEST | ( | Reader | , |
ParseMultipleCommentsInARow | ) |
Definition at line 1794 of file readertest.cpp.
TEST | ( | Reader | , |
ParseNanAndInfinity | ) |
Definition at line 2134 of file readertest.cpp.
TEST | ( | Reader | , |
ParseNumber_FullPrecisionDouble | ) |
Definition at line 591 of file readertest.cpp.
TEST | ( | Reader | , |
ParseNumber_Integer | ) |
Definition at line 113 of file readertest.cpp.
TEST | ( | Reader | , |
ParseNumber_NormalPrecisionDouble | ) |
Definition at line 587 of file readertest.cpp.
TEST | ( | Reader | , |
ParseNumber_NormalPrecisionError | ) |
Definition at line 595 of file readertest.cpp.
TEST | ( | Reader | , |
ParseNumberError_FullPrecisionDouble | ) |
Definition at line 751 of file readertest.cpp.
TEST | ( | Reader | , |
ParseNumberError_NormalPrecisionDouble | ) |
Definition at line 747 of file readertest.cpp.
TEST | ( | Reader | , |
ParseObject | ) |
Definition at line 1133 of file readertest.cpp.
TEST | ( | Reader | , |
ParseObject_Error | ) |
Definition at line 1267 of file readertest.cpp.
TEST | ( | Reader | , |
ParseString | ) |
Definition at line 782 of file readertest.cpp.
TEST | ( | Reader | , |
ParseString_Error | ) |
Definition at line 907 of file readertest.cpp.
TEST | ( | Reader | , |
ParseString_NonDestructive | ) |
Definition at line 889 of file readertest.cpp.
TEST | ( | Reader | , |
ParseString_Transcoding | ) |
Definition at line 867 of file readertest.cpp.
TEST | ( | Reader | , |
ParseString_TranscodingWithValidation | ) |
Definition at line 878 of file readertest.cpp.
TEST | ( | Reader | , |
ParseTerminationByHandler | ) |
Definition at line 1736 of file readertest.cpp.
TEST | ( | Reader | , |
ParseTrue | ) |
Definition at line 52 of file readertest.cpp.
TEST | ( | Reader | , |
ParseValue_Error | ) |
Definition at line 1258 of file readertest.cpp.
TEST | ( | Reader | , |
SkipWhitespace | ) |
Definition at line 1302 of file readertest.cpp.
TEST | ( | Reader | , |
TrailingCommaHandlerTermination | ) |
Definition at line 2126 of file readertest.cpp.
TEST | ( | Reader | , |
TrailingCommaHandlerTerminationIterative | ) |
TEST | ( | Reader | , |
TrailingCommas | ) |
Definition at line 2031 of file readertest.cpp.
TEST | ( | Reader | , |
TrailingCommasIterative | ) |
TEST | ( | Reader | , |
UnrecognizedComment | ) |
Definition at line 1869 of file readertest.cpp.
void TestEmptyExceptForCommaErrors | ( | ) |
Definition at line 2073 of file readertest.cpp.
void TestInsituMultipleRoot | ( | ) |
Definition at line 1209 of file readertest.cpp.
void TestMultipleRoot | ( | ) |
Definition at line 1188 of file readertest.cpp.
void TestMultipleTrailingCommaErrors | ( | ) |
Definition at line 2040 of file readertest.cpp.
ParseErrorCode TestString | ( | const typename Encoding::Ch * | str | ) |
Definition at line 899 of file readertest.cpp.
void TestTrailingCommaHandlerTermination | ( | ) |
Definition at line 2105 of file readertest.cpp.
void TestTrailingCommas | ( | ) |
Definition at line 1992 of file readertest.cpp.