Inheritance diagram for TestSerialization:
Collaboration diagram for TestSerialization:Public Member Functions | |
| TestSerialization () | |
| const char * | getName () |
| void | runTests (IGameDef *gamedef) |
| void | buildTestStrings () |
| void | testSerializeString () |
| void | testSerializeLongString () |
| void | testSerializeJsonString () |
| void | testDeSerializeString () |
| void | testDeSerializeLongString () |
| void | testStreamRead () |
| void | testStreamWrite () |
| void | testFloatFormat () |
Public Member Functions inherited from TestBase | |
| bool | testModule (IGameDef *gamedef) |
| std::string | getTestTempDirectory () |
| std::string | getTestTempFile () |
| void | runTest (const char *name, std::function< void()> &&test) |
Public Attributes | |
| std::string | teststring2 |
| std::wstring | teststring2_w |
| std::string | teststring2_w_encoded |
Public Attributes inherited from TestBase | |
| u32 | num_tests_failed |
| u32 | num_tests_run |
Static Public Attributes | |
| static const u8 | test_serialized_data [12 *11 - 2] |
|
inline |
| void TestSerialization::buildTestStrings | ( | ) |
References teststring2, teststring2_w, and teststring2_w_encoded.
Referenced by runTests().
Here is the caller graph for this function:
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References buildTestStrings(), TEST, testDeSerializeLongString(), testDeSerializeString(), testFloatFormat(), testSerializeJsonString(), testSerializeLongString(), testSerializeString(), testStreamRead(), and testStreamWrite().
Here is the call graph for this function:| void TestSerialization::testDeSerializeLongString | ( | ) |
References deSerializeString32(), EXCEPTION_CHECK, mkstr(), serializeString32(), teststring2, and UASSERT.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestSerialization::testDeSerializeString | ( | ) |
References deSerializeString16(), EXCEPTION_CHECK, mkstr(), serializeString16(), teststring2, and UASSERT.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestSerialization::testFloatFormat | ( | ) |
References f32Tou32Slow(), FLOATTYPE_SLOW, getFloatSerializationType(), u32Tof32Slow(), and UASSERT.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestSerialization::testSerializeJsonString | ( | ) |
References deSerializeJsonString(), deSerializeJsonStringIfNeeded(), mkstr(), serializeJsonString(), serializeJsonStringIfNeeded(), teststring2, UASSERT, and UASSERTEQ.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestSerialization::testSerializeLongString | ( | ) |
References mkstr(), serializeString32(), teststring2, and UASSERT.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestSerialization::testSerializeString | ( | ) |
References mkstr(), serializeString16(), teststring2, and UASSERT.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestSerialization::testStreamRead | ( | ) |
References deSerializeString16(), deSerializeString32(), F1000_MAX, F1000_MIN, readARGB8(), readF1000(), readS16(), readS32(), readS64(), readS8(), readU16(), readU32(), readU64(), readU8(), readV2S16(), readV2S32(), readV3F1000(), readV3S16(), readV3S32(), test_serialized_data, and UASSERT.
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void TestSerialization::testStreamWrite | ( | ) |
References F1000_MAX, F1000_MIN, serializeString16(), serializeString32(), test_serialized_data, UASSERT, writeARGB8(), writeF1000(), writeS16(), writeS32(), writeS64(), writeS8(), writeU16(), writeU32(), writeU64(), writeU8(), writeV2S16(), writeV2S32(), writeV3F1000(), writeV3S16(), and writeV3S32().
Referenced by runTests().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by testStreamRead(), and testStreamWrite().
| std::string TestSerialization::teststring2 |
| std::wstring TestSerialization::teststring2_w |
Referenced by buildTestStrings().
| std::string TestSerialization::teststring2_w_encoded |
Referenced by buildTestStrings().