test(channelserver): add unit tests for paper data handler

Covers all DataType branches (0/5/6/gift/>1000/unknown), ACK payload
structure with correct 10-byte header offset, earth succeed entry
counts, timetable content validation, PaperData/PaperGift serialization
round-trips, and paperGiftData table integrity checks.
This commit is contained in:
Houmgaor
2026-02-23 17:01:20 +01:00
parent b96505df3e
commit 4c4be1d336
3 changed files with 400 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Session lifecycle logging with duration and metrics tracking
- Structured logging with timing metrics for all database save operations
- Plate data (transmog) safety net in logout flow - adds monitoring checkpoint for platedata, platebox, and platemyset persistence
- Unit tests for `handlers_data_paper.go`: 20 tests covering all DataType branches, ACK payload structure, serialization round-trips, and paperGiftData table integrity
### Changed