(v *IntPtrValidation)
| 169 | } |
| 170 | |
| 171 | func ValidateIntPtrMissing(v *IntPtrValidation) (*int, error) { |
| 172 | if v.Required { |
| 173 | return nil, ErrorMustBeDefined(v.AllowedValues) |
| 174 | } |
| 175 | return validateIntPtr(v.Default, v) |
| 176 | } |
| 177 | |
| 178 | func ValidateIntPtrProvided(val *int, v *IntPtrValidation) (*int, error) { |
| 179 | if v.CantBeSpecifiedErrStr != nil { |
no test coverage detected