diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2026-07-10 11:18:37 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2026-07-10 11:18:37 -0700 |
| commit | 38f66d6e2fc7f36a0c902565551d370e7af79182 (patch) | |
| tree | bd22db1e8cb97712a35d1e4a2efd02f562eea00e /cmd | |
| parent | 0802a90657ade00851e3d798fc80682438a091fa (diff) | |
Add tests for connection login sequence and client networking
Cover the two biggest untested plumbing paths in the hotline package:
- handleNewConnection (server login sequence): 3.2% -> 79.6%, via a
scripted in-memory ReadWriteCloser that feeds handshake + login bytes
and captures replies. Covers successful 1.5+ and legacy 1.2.3 flows,
no-agreement access, incorrect login, banned username, and banned IP.
- Client Connect/HandleTransactions/keepalive: 0% -> 83-93%, via a
loopback TCP server for Connect and preloaded mock conns for the
transaction loop and keepalive shutdown.
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions