(t *testing.T)
| 20 | } |
| 21 | |
| 22 | func TestWsHandlerText(t *testing.T) { |
| 23 | e := wsHandlerTester(t) |
| 24 | |
| 25 | ws := e.GET("/path").WithWebsocketUpgrade(). |
| 26 | Expect(). |
| 27 | Status(http.StatusSwitchingProtocols). |
| 28 | Websocket() |
| 29 | defer ws.Disconnect() |
| 30 | |
| 31 | ws.WriteText("hi"). |
| 32 | Expect(). |
| 33 | TextMessage().Body().IsEqual("hi") |
| 34 | } |
| 35 | |
| 36 | func TestWsHandlerJSON(t *testing.T) { |
| 37 | e := wsHandlerTester(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…