MCPcopy Create free account
hub / github.com/cortexlabs/cortex / ValidateInt32Missing

Function ValidateInt32Missing

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

Source from the content-addressed store, hash-verified

160}
161
162func ValidateInt32Missing(v *Int32Validation) (int32, error) {
163 if v.Required {
164 return 0, ErrorMustBeDefined(v.AllowedValues)
165 }
166 return validateInt32(v.Default, v)
167}
168
169func ValidateInt32Provided(val int32, v *Int32Validation) (int32, error) {
170 if v.CantBeSpecifiedErrStr != nil {

Callers 7

StructFromStringMapFunction · 0.85
Int32FromInterfaceMapFunction · 0.85
Int32FromStrMapFunction · 0.85
Int32FromStrFunction · 0.85
Int32FromEnvFunction · 0.85
Int32FromFileFunction · 0.85
Int32FromPromptFunction · 0.85

Calls 2

ErrorMustBeDefinedFunction · 0.85
validateInt32Function · 0.85

Tested by

no test coverage detected