Reflection for RapidJSON
0.0.5
Reflection for serializing/deserializing with RapidJSON
|
The JsonReflectorTests class tests RapidJSON wrapper which is used to ease code generation. More...
Public Member Functions | |
void | setUp () |
void | tearDown () |
void | experiment () |
void | testSerializePrimitives () |
Tests serializing strings, numbers, arrays and boolean. More... | |
void | testSerializeSimpleObjects () |
Tests serializing objects. More... | |
void | testSerializeNestedObjects () |
Tests serializing nested object and arrays. More... | |
void | testSerializeUniquePtr () |
void | testSerializeSharedPtr () |
void | testDeserializePrimitives () |
Tests deserializing strings, numbers (int, float, double) and boolean. More... | |
void | testDeserializeSimpleObjects () |
Tests deserializing simple objects. More... | |
void | testDeserializeNestedObjects () |
Tests deserializing nested objects and arrays. More... | |
void | testDeserializeUniquePtr () |
void | testDeserializeSharedPtr () |
void | testHandlingParseError () |
Tests whether RAPIDJSON_NAMESPACE::ParseResult is thrown correctly when passing invalid JSON to fromJSON(). More... | |
void | testHandlingTypeMismatch () |
Tests whether errors are added on type mismatch and in other cases. More... | |
The JsonReflectorTests class tests RapidJSON wrapper which is used to ease code generation.
Definition at line 182 of file jsonreflector.cpp.
void JsonReflectorTests::experiment | ( | ) |
void JsonReflectorTests::setUp | ( | ) |
Definition at line 221 of file jsonreflector.cpp.
void JsonReflectorTests::tearDown | ( | ) |
Definition at line 225 of file jsonreflector.cpp.
void JsonReflectorTests::testDeserializeNestedObjects | ( | ) |
Tests deserializing nested objects and arrays.
Definition at line 461 of file jsonreflector.cpp.
void JsonReflectorTests::testDeserializePrimitives | ( | ) |
Tests deserializing strings, numbers (int, float, double) and boolean.
Definition at line 380 of file jsonreflector.cpp.
void JsonReflectorTests::testDeserializeSharedPtr | ( | ) |
Definition at line 525 of file jsonreflector.cpp.
void JsonReflectorTests::testDeserializeSimpleObjects | ( | ) |
Tests deserializing simple objects.
Definition at line 436 of file jsonreflector.cpp.
void JsonReflectorTests::testDeserializeUniquePtr | ( | ) |
Definition at line 503 of file jsonreflector.cpp.
void JsonReflectorTests::testHandlingParseError | ( | ) |
Tests whether RAPIDJSON_NAMESPACE::ParseResult is thrown correctly when passing invalid JSON to fromJSON().
Definition at line 550 of file jsonreflector.cpp.
void JsonReflectorTests::testHandlingTypeMismatch | ( | ) |
Tests whether errors are added on type mismatch and in other cases.
Definition at line 565 of file jsonreflector.cpp.
void JsonReflectorTests::testSerializeNestedObjects | ( | ) |
Tests serializing nested object and arrays.
Definition at line 291 of file jsonreflector.cpp.
void JsonReflectorTests::testSerializePrimitives | ( | ) |
Tests serializing strings, numbers, arrays and boolean.
Definition at line 232 of file jsonreflector.cpp.
void JsonReflectorTests::testSerializeSharedPtr | ( | ) |
Definition at line 349 of file jsonreflector.cpp.
void JsonReflectorTests::testSerializeSimpleObjects | ( | ) |
Tests serializing objects.
Definition at line 269 of file jsonreflector.cpp.
void JsonReflectorTests::testSerializeUniquePtr | ( | ) |
Definition at line 321 of file jsonreflector.cpp.