MCPcopy Create free account
hub / github.com/gavv/httpexpect / wsFastHandlerTester

Function wsFastHandlerTester

_examples/websocket_test.go:66–75  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

64}
65
66func wsFastHandlerTester(t *testing.T) *httpexpect.Expect {
67 return httpexpect.WithConfig(httpexpect.Config{
68 BaseURL: "http://example.com",
69 WebsocketDialer: httpexpect.NewFastWebsocketDialer(WsFastHTTPHandler),
70 Reporter: httpexpect.NewAssertReporter(t),
71 Printers: []httpexpect.Printer{
72 httpexpect.NewDebugPrinter(t, true),
73 },
74 })
75}
76
77func TestWsFastHandlerText(t *testing.T) {
78 e := wsFastHandlerTester(t)

Callers 3

TestWsFastHandlerTextFunction · 0.85
TestWsFastHandlerJSONFunction · 0.85
TestWsFastHandlerCloseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…