DarkflameServer/dCommon
David Markowitz e8590a5853
Add tests for LDF parsing and serialization. Cleanup LDF (#1062)
* Add tests and cleanup LDF header

Also implements a speedup by using overloaded operators to put numbers directly to a stream as opposed to doing to_string first.

Stage 2 of re-write

Reduce scoping
Add further optimizations
Fix more edge cases
Split out tests to many smaller ones

Use EXPECT_NO_THROW

Add edge cases to test

Added these first with the before to confirm they failed, and now will be adding the remaining fixes needed to make the tests pass.

Add edge case testing for LDF strings

Add further tests

Use characters instead of char*

Update AMFDeserializeTests.cpp

Add null tests

* Add Test Fixture for dCommon

* Add speed test

* Convert to using string_view

* Add explanation on early return

* Remove "testing" code
2023-05-02 17:19:20 -05:00
..
dClient Resolve most compiler warnings (#1053) 2023-04-12 11:48:20 -05:00
dEnums breakout object bits into scoped enum (#997) 2023-04-25 13:17:40 -05:00
AMFDeserialize.cpp format codebase 2022-07-28 08:39:57 -05:00
AMFDeserialize.h format codebase 2022-07-28 08:39:57 -05:00
AMFFormat_BitStream.cpp Resolve most compiler warnings (#1053) 2023-04-12 11:48:20 -05:00
AMFFormat_BitStream.h format codebase 2022-07-28 08:39:57 -05:00
AMFFormat.cpp Change AMFArray getters to use Templates and fix CI halting when one matrix fails (#796) 2022-10-30 13:06:05 -07:00
AMFFormat.h Fix warning for overrides (#961) 2023-01-20 00:07:25 -08:00
BinaryIO.cpp Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BinaryIO.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BinaryPathFinder.cpp Allow servers to be run from directories other than build. Read/write files relative to binary instead of cwd (#834) 2022-11-27 03:59:59 -08:00
BinaryPathFinder.h Allow servers to be run from directories other than build. Read/write files relative to binary instead of cwd (#834) 2022-11-27 03:59:59 -08:00
BrickByBrickFix.cpp Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
BrickByBrickFix.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00
CMakeLists.txt Implement FDB to SQLite (#872) 2022-12-05 00:57:58 -08:00
dConfig.cpp Add support to reload the config (#868) 2022-12-04 16:25:58 -06:00
dConfig.h Remove GameConfig (#874) 2023-01-06 23:21:40 -06:00
Diagnostics.cpp Resolve most compiler warnings (#1053) 2023-04-12 11:48:20 -05:00
Diagnostics.h format codebase 2022-07-28 08:39:57 -05:00
dLogger.cpp Fix debug logging newline (#940) 2023-01-04 08:15:06 -06:00
dLogger.h format codebase 2022-07-28 08:39:57 -05:00
FdbToSqlite.cpp Address Docker issues and remove need to extract cdclient.fdb (#895) 2023-01-06 23:04:20 -06:00
FdbToSqlite.h Address Docker issues and remove need to extract cdclient.fdb (#895) 2023-01-06 23:04:20 -06:00
Game.h Merge remote-tracking branch 'upstream/main' into ServerShutdown 2022-12-15 18:43:28 -08:00
GeneralUtils.cpp Allow case insensitive commands (#1047) 2023-04-08 15:45:45 -05:00
GeneralUtils.h breakout object bits into scoped enum (#997) 2023-04-25 13:17:40 -05:00
LDFFormat.cpp Add tests for LDF parsing and serialization. Cleanup LDF (#1062) 2023-05-02 17:19:20 -05:00
LDFFormat.h Add tests for LDF parsing and serialization. Cleanup LDF (#1062) 2023-05-02 17:19:20 -05:00
MD5.cpp format codebase 2022-07-28 08:39:57 -05:00
MD5.h format codebase 2022-07-28 08:39:57 -05:00
Metrics.cpp format codebase 2022-07-28 08:39:57 -05:00
Metrics.hpp format codebase 2022-07-28 08:39:57 -05:00
NiPoint3.cpp Implement some more trigger event calls and command handlers (#989) 2023-03-25 05:26:39 -05:00
NiPoint3.h Implement some more trigger event calls and command handlers (#989) 2023-03-25 05:26:39 -05:00
NiQuaternion.cpp format codebase 2022-07-28 08:39:57 -05:00
NiQuaternion.h format codebase 2022-07-28 08:39:57 -05:00
SHA512.cpp format codebase 2022-07-28 08:39:57 -05:00
SHA512.h format codebase 2022-07-28 08:39:57 -05:00
Singleton.h CDClient cleanup and optimization (#1023) 2023-03-17 07:36:21 -07:00
Type.cpp format codebase 2022-07-28 08:39:57 -05:00
Type.h format codebase 2022-07-28 08:39:57 -05:00
ZCompression.cpp Add ZLIB for Windows (#768) 2022-09-05 20:28:47 -07:00
ZCompression.h Add support for packed clients (#802) 2022-11-01 13:21:26 -05:00