diff options
| author | historia <[not public]> | 2026-09-16 15:00:46 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 15:00:46 -0400 |
| commit | a6cf03a6ae98e4fb675da25046d148e92bcf7206 (patch) | |
| tree | 194499fe9e696be8c31cd915b7ad92678f9f95e0 /internal/game/harness_test.go | |
| parent | 9192d94dea6be5498ab080f3e2df5667af871d7a (diff) | |
| download | thehouseoficarus-a6cf03a6ae98e4fb675da25046d148e92bcf7206.tar.gz | |
chore: staticcheck and gofmt cleanups
Diffstat (limited to 'internal/game/harness_test.go')
| -rw-r--r-- | internal/game/harness_test.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/internal/game/harness_test.go b/internal/game/harness_test.go index 7898af2..a368634 100644 --- a/internal/game/harness_test.go +++ b/internal/game/harness_test.go @@ -75,14 +75,6 @@ func (c *chanConn) Contains(substr string) bool { return strings.Contains(string(c.Bytes()), substr) } -// send queues an input line for ReadMessage. No-op after close. -func (c *chanConn) send(line string) { - select { - case c.in <- line: - case <-c.closed: - } -} - // harness wires a real Game (temp data dir) to fake transports driven from // per-connection goroutines plus a competing tick goroutine, reproducing the // production entry-point concurrency: session input, disconnect callbacks, and @@ -255,12 +247,3 @@ func (h *harness) goInput(sess *net.Session, workers int) chan<- string { } return lines } - -const workers = 1 - -// sessionFor returns the registered session for a character name. -func (h *harness) sessionFor(name string) *net.Session { - h.mu.Lock() - defer h.mu.Unlock() - return h.sessions[name] -} |
