Reflection for RapidJSON 0.0.16
Reflection for serializing/deserializing with RapidJSON
Loading...
Searching...
No Matches
BinaryReflectorTests Class Reference

The BinaryReflectorTests class tests the (de)serializer. More...

Inheritance diagram for BinaryReflectorTests:
[legend]
Collaboration diagram for BinaryReflectorTests:
[legend]

Public Member Functions

 BinaryReflectorTests ()
 
void setUp () override
 
void tearDown () override
 
void testSerializeSimpleStruct ()
 
void testDeserializeSimpleStruct ()
 
void testSerializeNestedStruct ()
 
void testDeserializeNestedStruct ()
 
void assertTestObject (const TestObjectBinary &deserialized)
 
void testSharedPointer (std::uintptr_t fakePointer)
 
void testSmallSharedPointer ()
 
void testBigSharedPointer ()
 
void testVariant ()
 
void testOptional ()
 

Detailed Description

The BinaryReflectorTests class tests the (de)serializer.

Remarks
In these tests, the required reflection code is provided by hand so the generator isn't involved yet.

Definition at line 164 of file binaryreflector.cpp.

Constructor & Destructor Documentation

◆ BinaryReflectorTests()

BinaryReflectorTests::BinaryReflectorTests ( )

Definition at line 204 of file binaryreflector.cpp.

Member Function Documentation

◆ assertTestObject()

void BinaryReflectorTests::assertTestObject ( const TestObjectBinary & deserialized)

Definition at line 352 of file binaryreflector.cpp.

◆ setUp()

void BinaryReflectorTests::setUp ( )
override

Definition at line 248 of file binaryreflector.cpp.

◆ tearDown()

void BinaryReflectorTests::tearDown ( )
override

Definition at line 272 of file binaryreflector.cpp.

◆ testBigSharedPointer()

void BinaryReflectorTests::testBigSharedPointer ( )

Definition at line 401 of file binaryreflector.cpp.

◆ testDeserializeNestedStruct()

void BinaryReflectorTests::testDeserializeNestedStruct ( )

Definition at line 339 of file binaryreflector.cpp.

◆ testDeserializeSimpleStruct()

void BinaryReflectorTests::testDeserializeSimpleStruct ( )

Definition at line 318 of file binaryreflector.cpp.

◆ testOptional()

void BinaryReflectorTests::testOptional ( )

Definition at line 429 of file binaryreflector.cpp.

◆ testSerializeNestedStruct()

void BinaryReflectorTests::testSerializeNestedStruct ( )

Definition at line 327 of file binaryreflector.cpp.

◆ testSerializeSimpleStruct()

void BinaryReflectorTests::testSerializeSimpleStruct ( )

Definition at line 306 of file binaryreflector.cpp.

◆ testSharedPointer()

void BinaryReflectorTests::testSharedPointer ( std::uintptr_t fakePointer)

Definition at line 367 of file binaryreflector.cpp.

◆ testSmallSharedPointer()

void BinaryReflectorTests::testSmallSharedPointer ( )

Definition at line 396 of file binaryreflector.cpp.

◆ testVariant()

void BinaryReflectorTests::testVariant ( )

Definition at line 406 of file binaryreflector.cpp.


The documentation for this class was generated from the following file: