MCPcopy
hub / github.com/cortexlabs/cortex / ValidateInt32Provided

Function ValidateInt32Provided

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

Source from the content-addressed store, hash-verified

167}
168
169func ValidateInt32Provided(val int32, v *Int32Validation) (int32, error) {
170 if v.CantBeSpecifiedErrStr != nil {
171 return 0, ErrorFieldCantBeSpecified(*v.CantBeSpecifiedErrStr)
172 }
173 return validateInt32(val, v)
174}
175
176func validateInt32(val int32, v *Int32Validation) (int32, error) {
177 err := ValidateInt32Val(val, v)

Callers 3

ReadPromptFunction · 0.85
Int32Function · 0.85
Int32FromStrFunction · 0.85

Calls 2

validateInt32Function · 0.85

Tested by

no test coverage detected