Reflection for RapidJSON  0.0.15
Reflection for serializing/deserializing with RapidJSON
Public Member Functions | List of all members
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 ()
 

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 153 of file binaryreflector.cpp.

Constructor & Destructor Documentation

◆ BinaryReflectorTests()

BinaryReflectorTests::BinaryReflectorTests ( )

Definition at line 191 of file binaryreflector.cpp.

Member Function Documentation

◆ assertTestObject()

void BinaryReflectorTests::assertTestObject ( const TestObjectBinary &  deserialized)

Definition at line 307 of file binaryreflector.cpp.

◆ setUp()

void BinaryReflectorTests::setUp ( )
override

Definition at line 235 of file binaryreflector.cpp.

◆ tearDown()

void BinaryReflectorTests::tearDown ( )
override

Definition at line 259 of file binaryreflector.cpp.

◆ testBigSharedPointer()

void BinaryReflectorTests::testBigSharedPointer ( )

Definition at line 356 of file binaryreflector.cpp.

◆ testDeserializeNestedStruct()

void BinaryReflectorTests::testDeserializeNestedStruct ( )

Definition at line 294 of file binaryreflector.cpp.

◆ testDeserializeSimpleStruct()

void BinaryReflectorTests::testDeserializeSimpleStruct ( )

Definition at line 274 of file binaryreflector.cpp.

◆ testSerializeNestedStruct()

void BinaryReflectorTests::testSerializeNestedStruct ( )

Definition at line 283 of file binaryreflector.cpp.

◆ testSerializeSimpleStruct()

void BinaryReflectorTests::testSerializeSimpleStruct ( )

Definition at line 263 of file binaryreflector.cpp.

◆ testSharedPointer()

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

Definition at line 322 of file binaryreflector.cpp.

◆ testSmallSharedPointer()

void BinaryReflectorTests::testSmallSharedPointer ( )

Definition at line 351 of file binaryreflector.cpp.

◆ testVariant()

void BinaryReflectorTests::testVariant ( )

Definition at line 361 of file binaryreflector.cpp.


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