|
Reflection for RapidJSON 0.0.16
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 () override |
| void | tearDown () override |
| void | experiment () |
| void | testSerializePrimitives () |
| Tests serializing strings, numbers, arrays and boolean. | |
| void | testSerializeSimpleObjects () |
| Tests serializing objects. | |
| void | testSerializeNestedObjects () |
| Tests serializing nested object and arrays. | |
| void | testSerializeUniquePtr () |
| void | testSerializeSharedPtr () |
| void | testSerializeOptional () |
| Tests serializing std::optional. | |
| void | testDeserializePrimitives () |
| Tests deserializing strings, numbers (int, float, double) and boolean. | |
| void | testDeserializeSimpleObjects () |
| Tests deserializing simple objects. | |
| void | testDeserializeNestedObjects () |
| Tests deserializing nested objects and arrays. | |
| void | testDeserializeUniquePtr () |
| Tests deserializing std::optional. | |
| void | testDeserializeSharedPtr () |
| void | testDeserializeOptional () |
| void | testHandlingParseError () |
| Tests whether RAPIDJSON_NAMESPACE::ParseResult is thrown correctly when passing invalid JSON to fromJSON(). | |
| void | testHandlingTypeMismatch () |
| Tests whether errors are added on type mismatch and in other cases. | |
The JsonReflectorTests class tests RapidJSON wrapper which is used to ease code generation.
Definition at line 182 of file jsonreflector.cpp.
| void JsonReflectorTests::experiment | ( | ) |
|
override |
Definition at line 225 of file jsonreflector.cpp.
|
override |
Definition at line 229 of file jsonreflector.cpp.
| void JsonReflectorTests::testDeserializeNestedObjects | ( | ) |
Tests deserializing nested objects and arrays.
Definition at line 504 of file jsonreflector.cpp.
| void JsonReflectorTests::testDeserializeOptional | ( | ) |
Definition at line 593 of file jsonreflector.cpp.
| void JsonReflectorTests::testDeserializePrimitives | ( | ) |
Tests deserializing strings, numbers (int, float, double) and boolean.
Definition at line 411 of file jsonreflector.cpp.
| void JsonReflectorTests::testDeserializeSharedPtr | ( | ) |
Definition at line 571 of file jsonreflector.cpp.
| void JsonReflectorTests::testDeserializeSimpleObjects | ( | ) |
Tests deserializing simple objects.
Definition at line 467 of file jsonreflector.cpp.
| void JsonReflectorTests::testDeserializeUniquePtr | ( | ) |
Tests deserializing std::optional.
Definition at line 549 of file jsonreflector.cpp.
| void JsonReflectorTests::testHandlingParseError | ( | ) |
Tests whether RAPIDJSON_NAMESPACE::ParseResult is thrown correctly when passing invalid JSON to fromJSON().
Definition at line 612 of file jsonreflector.cpp.
| void JsonReflectorTests::testHandlingTypeMismatch | ( | ) |
Tests whether errors are added on type mismatch and in other cases.
Definition at line 627 of file jsonreflector.cpp.
| void JsonReflectorTests::testSerializeNestedObjects | ( | ) |
Tests serializing nested object and arrays.
Definition at line 300 of file jsonreflector.cpp.
| void JsonReflectorTests::testSerializeOptional | ( | ) |
Tests serializing std::optional.
Definition at line 389 of file jsonreflector.cpp.
| void JsonReflectorTests::testSerializePrimitives | ( | ) |
Tests serializing strings, numbers, arrays and boolean.
Definition at line 236 of file jsonreflector.cpp.
| void JsonReflectorTests::testSerializeSharedPtr | ( | ) |
Definition at line 358 of file jsonreflector.cpp.
| void JsonReflectorTests::testSerializeSimpleObjects | ( | ) |
Tests serializing objects.
Definition at line 273 of file jsonreflector.cpp.
| void JsonReflectorTests::testSerializeUniquePtr | ( | ) |
Definition at line 330 of file jsonreflector.cpp.