test: increase total coverage from 31.3% to 40.7%

Add batch Parse/Build tests for ~150 mhfpacket types, net.Pipe-based
round-trip tests for CryptConn Send/ReadPacket, overflow panic tests
for all byteframe Read types, and additional empty handler coverage.
This commit is contained in:
Houmgaor
2026-02-08 14:30:02 +01:00
parent 6f4b207328
commit 81b2b85a8b
4 changed files with 2486 additions and 0 deletions

View File

@@ -298,6 +298,10 @@ func TestEmptyHandlers_NoDb(t *testing.T) {
{"handleMsgMhfStampcardPrize", handleMsgMhfStampcardPrize},
{"handleMsgMhfUnreserveSrg", handleMsgMhfUnreserveSrg},
{"handleMsgMhfKickExportForce", handleMsgMhfKickExportForce},
{"handleMsgSysSetStatus", handleMsgSysSetStatus},
{"handleMsgSysEcho", handleMsgSysEcho},
{"handleMsgMhfUseUdShopCoin", handleMsgMhfUseUdShopCoin},
{"handleMsgMhfEnterTournamentQuest", handleMsgMhfEnterTournamentQuest},
}
for _, tt := range tests {