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

Method NotTextMessage

websocket_message.go:167–174  ·  view source on GitHub ↗

NotTextMessage is a shorthand for m.NotType(websocket.TextMessage).

()

Source from the content-addressed store, hash-verified

165
166// NotTextMessage is a shorthand for m.NotType(websocket.TextMessage).
167func (wm *WebsocketMessage) NotTextMessage() *WebsocketMessage {
168 opChain := wm.chain.enter("NotTextMessage()")
169 defer opChain.leave()
170
171 wm.checkNotType(opChain, websocket.TextMessage)
172
173 return wm
174}
175
176// Type succeeds if WebSocket message type is one of the given.
177//

Callers 1

Calls 3

checkNotTypeMethod · 0.95
enterMethod · 0.80
leaveMethod · 0.80

Tested by 1