MCPcopy Index your code
hub / github.com/cortexlabs/cortex / ValidateIntProvided

Function ValidateIntProvided

pkg/lib/configreader/int.go:169–174  ·  view source on GitHub ↗
(val int, v *IntValidation)

Source from the content-addressed store, hash-verified

167}
168
169func ValidateIntProvided(val int, v *IntValidation) (int, error) {
170 if v.CantBeSpecifiedErrStr != nil {
171 return 0, ErrorFieldCantBeSpecified(*v.CantBeSpecifiedErrStr)
172 }
173 return validateInt(val, v)
174}
175
176func validateInt(val int, v *IntValidation) (int, error) {
177 err := ValidateIntVal(val, v)

Callers 3

IntFunction · 0.85
IntFromStrFunction · 0.85
ReadPromptFunction · 0.85

Calls 2

validateIntFunction · 0.85

Tested by

no test coverage detected