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

Function TestWebsocketMessage_Codes

websocket_message_test.go:747–759  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

745}
746
747func TestWebsocketMessage_Codes(t *testing.T) {
748 t.Run("message type", func(t *testing.T) {
749 for n := 0; n < 100; n++ {
750 assert.NotEmpty(t, wsMessageType(n).String())
751 }
752 })
753
754 t.Run("close code", func(t *testing.T) {
755 for n := 0; n < 2000; n++ {
756 assert.NotEmpty(t, wsCloseCode(n).String())
757 }
758 })
759}

Callers

nothing calls this directly

Calls 4

wsMessageTypeTypeAlias · 0.85
wsCloseCodeTypeAlias · 0.85
NotEmptyMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…