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

Method CloseMessage

websocket_message.go:117–124  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

115
116// CloseMessage is a shorthand for m.Type(websocket.CloseMessage).
117func (wm *WebsocketMessage) CloseMessage() *WebsocketMessage {
118 opChain := wm.chain.enter("CloseMessage()")
119 defer opChain.leave()
120
121 wm.checkType(opChain, websocket.CloseMessage)
122
123 return wm
124}
125
126// NotCloseMessage is a shorthand for m.NotType(websocket.CloseMessage).
127func (wm *WebsocketMessage) NotCloseMessage() *WebsocketMessage {

Callers 5

TestWsHandlerCloseFunction · 0.80
TestWsFastHandlerCloseFunction · 0.80
testWebsocketSessionFunction · 0.80

Calls 3

checkTypeMethod · 0.95
enterMethod · 0.80
leaveMethod · 0.80

Tested by 5

TestWsHandlerCloseFunction · 0.64
TestWsFastHandlerCloseFunction · 0.64
testWebsocketSessionFunction · 0.64