MCPcopy Create free account
hub / github.com/monitoror/monitoror / getStatusCodesWithDefault

Function getStatusCodesWithDefault

monitorables/http/api/models/params.go:47–57  ·  view source on GitHub ↗
(statusCodeMin, statusCodeMax *int)

Source from the content-addressed store, hash-verified

45}
46
47func getStatusCodesWithDefault(statusCodeMin, statusCodeMax *int) (min int, max int) {
48 min = DefaultMinStatusCode
49 if statusCodeMin != nil {
50 min = *statusCodeMin
51 }
52 max = DefaultMaxStatusCode
53 if statusCodeMax != nil {
54 max = *statusCodeMax
55 }
56 return
57}
58
59func getRegexp(regex string) *regexp.Regexp {
60 if regex != "" {

Callers 6

GetStatusCodesMethod · 0.85
GetStatusCodesMethod · 0.85
GetStatusCodesMethod · 0.85
GetStatusCodesMethod · 0.85
GetStatusCodesMethod · 0.85
GetStatusCodesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected