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

Function validateInt32

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

Source from the content-addressed store, hash-verified

174}
175
176func validateInt32(val int32, v *Int32Validation) (int32, error) {
177 err := ValidateInt32Val(val, v)
178 if err != nil {
179 return 0, err
180 }
181
182 if v.Validator != nil {
183 return v.Validator(val)
184 }
185 return val, nil
186}
187
188func ValidateInt32Val(val int32, v *Int32Validation) error {
189 if v.GreaterThan != nil {

Callers 2

ValidateInt32MissingFunction · 0.85
ValidateInt32ProvidedFunction · 0.85

Calls 1

ValidateInt32ValFunction · 0.85

Tested by

no test coverage detected