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

Function validateInt64

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

Source from the content-addressed store, hash-verified

174}
175
176func validateInt64(val int64, v *Int64Validation) (int64, error) {
177 err := ValidateInt64Val(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 ValidateInt64Val(val int64, v *Int64Validation) error {
189 if v.GreaterThan != nil {

Callers 2

ValidateInt64MissingFunction · 0.85
ValidateInt64ProvidedFunction · 0.85

Calls 1

ValidateInt64ValFunction · 0.85

Tested by

no test coverage detected