"Ttyd"
- WebSocket 協議測試實作
對真實 ttyd 驗證 frame type 和 auth handshake — 從 [WebSocket text/binary frame 被 FakeWebSocketChannel 遮蔽](/testing/cases/ws-text-binary-frame-mock-blindspot/) 和 [Auth handshake 邏輯缺失被 FakeWebSocketChannel 遮蔽](/testing/cases/auth-handshake-missing-mock-blindspot/) 的教訓推導出的 protocol integration test 設計
- 192 個測試全過、實機全壞:Mock 遮蔽真實行為的三層測試策略
unit test 全綠、實機部署後功能整片壞掉。mock-only 策略的結構盲區(text vs binary frame、缺 auth handshake、ANSI 多樣性被 FakeWebSocketChannel 遮蔽),以及分層測試各抓什麼、各遮蔽什麼。