aboutsummaryrefslogtreecommitdiff
path: root/internal/game/harness_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/harness_test.go')
-rw-r--r--internal/game/harness_test.go17
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]
-}