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

Method NotType

websocket_message.go:203–210  ·  view source on GitHub ↗

NotType succeeds if WebSocket message type is none of the given. WebSocket message types are defined in RFC 6455, section 11.8. See also https://godoc.org/github.com/gorilla/websocket#pkg-constants Example: msg := conn.Expect() msg.NotType(websocket.CloseMessage, websocket.BinaryMessage)

(types ...int)

Source from the content-addressed store, hash-verified

201// msg := conn.Expect()
202// msg.NotType(websocket.CloseMessage, websocket.BinaryMessage)
203func (wm *WebsocketMessage) NotType(types ...int) *WebsocketMessage {
204 opChain := wm.chain.enter("NotType()")
205 defer opChain.leave()
206
207 wm.checkNotType(opChain, types...)
208
209 return wm
210}
211
212func (wm *WebsocketMessage) checkType(opChain *chain, types ...int) {
213 if opChain.failed() {

Calls 3

checkNotTypeMethod · 0.95
enterMethod · 0.80
leaveMethod · 0.80