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

Function ValidateIntMissing

pkg/lib/configreader/int.go:162–167  ·  view source on GitHub ↗
(v *IntValidation)

Source from the content-addressed store, hash-verified

160}
161
162func ValidateIntMissing(v *IntValidation) (int, error) {
163 if v.Required {
164 return 0, ErrorMustBeDefined(v.AllowedValues)
165 }
166 return validateInt(v.Default, v)
167}
168
169func ValidateIntProvided(val int, v *IntValidation) (int, error) {
170 if v.CantBeSpecifiedErrStr != nil {

Callers 7

IntFromInterfaceMapFunction · 0.85
IntFromStrMapFunction · 0.85
IntFromStrFunction · 0.85
IntFromEnvFunction · 0.85
IntFromFileFunction · 0.85
IntFromPromptFunction · 0.85
StructFromStringMapFunction · 0.85

Calls 2

ErrorMustBeDefinedFunction · 0.85
validateIntFunction · 0.85

Tested by

no test coverage detected