MCPcopy Index your code
hub / github.com/httprunner/httprunner / checkWebSocket

Method checkWebSocket

hrp/step_websocket.go:92–105  ·  view source on GitHub ↗

checkWebSocket validates the websocket configuration parameters

()

Source from the content-addressed store, hash-verified

90
91// checkWebSocket validates the websocket configuration parameters
92func (wsConfig *WebSocketConfig) checkWebSocket() {
93 if wsConfig == nil {
94 return
95 }
96 if wsConfig.ReconnectionTimes <= 0 {
97 wsConfig.ReconnectionTimes = defaultReconnectionTimes
98 }
99 if wsConfig.ReconnectionInterval <= 0 {
100 wsConfig.ReconnectionInterval = defaultReconnectionInterval
101 }
102 if wsConfig.MaxMessageSize <= 0 {
103 wsConfig.MaxMessageSize = defaultMaxMessageSize
104 }
105}
106
107// StepWebSocket implements IStep interface.
108type StepWebSocket struct {

Callers 1

parseConfigMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected