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

Function ValidateInt64Provided

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

Source from the content-addressed store, hash-verified

167}
168
169func ValidateInt64Provided(val int64, v *Int64Validation) (int64, error) {
170 if v.CantBeSpecifiedErrStr != nil {
171 return 0, ErrorFieldCantBeSpecified(*v.CantBeSpecifiedErrStr)
172 }
173 return validateInt64(val, v)
174}
175
176func validateInt64(val int64, v *Int64Validation) (int64, error) {
177 err := ValidateInt64Val(val, v)

Callers 3

Int64Function · 0.85
Int64FromStrFunction · 0.85
ReadPromptFunction · 0.85

Calls 2

validateInt64Function · 0.85

Tested by

no test coverage detected