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

Method TextMessage

websocket_message.go:157–164  ·  view source on GitHub ↗

TextMessage is a shorthand for m.Type(websocket.TextMessage).

()

Source from the content-addressed store, hash-verified

155
156// TextMessage is a shorthand for m.Type(websocket.TextMessage).
157func (wm *WebsocketMessage) TextMessage() *WebsocketMessage {
158 opChain := wm.chain.enter("TextMessage()")
159 defer opChain.leave()
160
161 wm.checkType(opChain, websocket.TextMessage)
162
163 return wm
164}
165
166// NotTextMessage is a shorthand for m.NotType(websocket.TextMessage).
167func (wm *WebsocketMessage) NotTextMessage() *WebsocketMessage {

Callers 6

TestWsHandlerTextFunction · 0.80
TestWsHandlerJSONFunction · 0.80
TestWsFastHandlerTextFunction · 0.80
TestWsFastHandlerJSONFunction · 0.80
testWebsocketSessionFunction · 0.80

Calls 3

checkTypeMethod · 0.95
enterMethod · 0.80
leaveMethod · 0.80

Tested by 6

TestWsHandlerTextFunction · 0.64
TestWsHandlerJSONFunction · 0.64
TestWsFastHandlerTextFunction · 0.64
TestWsFastHandlerJSONFunction · 0.64
testWebsocketSessionFunction · 0.64