mirror of
https://github.com/dalbodeule/hop-gate.git
synced 2026-11-05 20:59:30 +09:00
Improve test documentation for mock datagram connection
Co-authored-by: dalbodeule <11470513+dalbodeule@users.noreply.github.com>
This commit is contained in:
1 parent
76423627e9
commit
a00c001b49
3 files changed
+2
-3
No files matched your search
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
// mockDatagramConn simulates a datagram-based connection (like DTLS over UDP)
|
||||
// where each Write sends a separate message and each Read receives a complete message.
|
||||
// This mock verifies the FIXED behavior where the codec properly handles message boundaries.
|
||||
type mockDatagramConn struct {
|
||||
messages [][]byte
|
||||
readIdx int
|
||||
|
||||
Reference in new issue
Block a user