(t *testing.T)
| 75 | } |
| 76 | |
| 77 | func TestWsFastHandlerText(t *testing.T) { |
| 78 | e := wsFastHandlerTester(t) |
| 79 | |
| 80 | ws := e.GET("/path").WithWebsocketUpgrade(). |
| 81 | Expect(). |
| 82 | Status(http.StatusSwitchingProtocols). |
| 83 | Websocket() |
| 84 | defer ws.Disconnect() |
| 85 | |
| 86 | ws.WriteText("hi"). |
| 87 | Expect(). |
| 88 | TextMessage().Body().IsEqual("hi") |
| 89 | } |
| 90 | |
| 91 | func TestWsFastHandlerJSON(t *testing.T) { |
| 92 | e := wsFastHandlerTester(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…