results: slice 3 test and mutation logs (#18)

This commit is contained in:
2026-11-15 08:33:16 +01:00
parent db22b33567
commit 2a1e2dd71c
2 changed files with 198 additions and 17 deletions
+34
View File
@@ -55,6 +55,13 @@
... [OK] revokePlayer returns every live connection of that player and nothing else
... [OK] remove works by conn id; an unknown id is a no-op
... [OK] connForWs finds the registered socket (mummy hands the same value back)
... [Suite] per-connection wire state (#18)
... [OK] the frame counter starts at 1 on each connection and is never global
... [OK] a removed connection has no next frame number; the caller sends closing with frameNo
... [OK] the intent bucket is per connection: draining one leaves the other full
... [OK] the malformed window is per connection and fires on the tenth frame
... [OK] a Pong is recorded on the right connection
... [OK] a snapshot hands out every live connection without holding the lock afterwards
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tcrypto (from package fff_vtt) using c backend
Nim Output [Suite] sha256
@@ -212,6 +219,33 @@
... [OK] P4: probing cannot unflag or move a blocked token
... [OK] doors beyond the bound: opening or closing them changes no reply
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tprotocol (from package fff_vtt) using c backend
Nim Output [Suite] envelope (6.5 step 2)
... [OK] a well-formed intent parses and keeps its reqId and node
... [OK] reqId boundaries: 0 and 2^31-1 pass, 2^31 and -1 are malformed
... [OK] every unreadable frame is malformed, never an ack
... [OK] a payload that is not UTF-8 is malformed even when it parses as JSON bytes
... [OK] the catalogue is the 29 intents of 6.1 and the built set is a subset
... [OK] role classes: the GM-only set never swallows the intents both roles may send
... [OK] only this slice's intents answer with a real handler
... [Suite] intent rate limit (6.4: 30/s, burst 100)
... [OK] a fresh bucket allows exactly the burst, then refuses
... [OK] refill is continuous at 30/s, capped at the burst
... [OK] the refill never exceeds the burst, however long the connection idles
... [OK] the bucket is per connection and starts full: no shared state
... [Suite] malformed flood (6.5 row 8: 10 inside any 10 s)
... [OK] nine malformed frames are tolerated, the tenth closes
... [OK] a frame slower than the window does not count: 9 fast + 1 slow is not a flood
... [OK] the window slides: the flood fires again only on a fresh ten inside it
... [OK] a second connection has its own window
... [Suite] server frames (6.1)
... [OK] hello carries proto, role, me and n; an unnamed player's name is null
... [OK] ack ok carries its result fields and never a code
... [OK] a refusal is a static code and no state
... [OK] the uniform move refusal carries pos and no code (5.5, T9)
... [OK] error and closing frames have no reqId
... [OK] the close-code table of 6.5 is the app range plus 1008
Success: Execution finished
Compiling /home/davide/Projects/GDR/FFF_vtt/tests/tscenegen (from package fff_vtt) using c backend
Nim Output [Suite] scenegen (bench scenes)
... [OK] exactly n walls, deterministic per seed, seeds differ