(v *IntValidation)
| 160 | } |
| 161 | |
| 162 | func ValidateIntMissing(v *IntValidation) (int, error) { |
| 163 | if v.Required { |
| 164 | return 0, ErrorMustBeDefined(v.AllowedValues) |
| 165 | } |
| 166 | return validateInt(v.Default, v) |
| 167 | } |
| 168 | |
| 169 | func ValidateIntProvided(val int, v *IntValidation) (int, error) { |
| 170 | if v.CantBeSpecifiedErrStr != nil { |
no test coverage detected