(e *httpexpect.Expect)
| 94 | } |
| 95 | |
| 96 | func testWebsocketHeader(e *httpexpect.Expect) { |
| 97 | resp := e.GET("/test").WithWebsocketUpgrade(). |
| 98 | Expect(). |
| 99 | Status(http.StatusSwitchingProtocols) |
| 100 | |
| 101 | hdr := resp.Header("X-Test") |
| 102 | hdr.IsEqual("test_header") |
| 103 | |
| 104 | ws := resp.Websocket() |
| 105 | ws.Disconnect() |
| 106 | } |
| 107 | |
| 108 | func testWebsocketSession(e *httpexpect.Expect) { |
| 109 | ws := e.GET("/test").WithWebsocketUpgrade(). |
no test coverage detected
searching dependent graphs…