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

Function ValidateInterfaceMissing

pkg/lib/configreader/interface.go:59–64  ·  view source on GitHub ↗
(v *InterfaceValidation)

Source from the content-addressed store, hash-verified

57}
58
59func ValidateInterfaceMissing(v *InterfaceValidation) (interface{}, error) {
60 if v.Required {
61 return nil, ErrorMustBeDefined()
62 }
63 return validateInterface(v.Default, v)
64}
65
66func ValidateInterfaceProvided(val interface{}, v *InterfaceValidation) (interface{}, error) {
67 if v.CantBeSpecifiedErrStr != nil {

Callers 1

Calls 2

ErrorMustBeDefinedFunction · 0.85
validateInterfaceFunction · 0.85

Tested by

no test coverage detected