(val *int32, v *Int32PtrValidation)
| 176 | } |
| 177 | |
| 178 | func ValidateInt32PtrProvided(val *int32, v *Int32PtrValidation) (*int32, error) { |
| 179 | if v.CantBeSpecifiedErrStr != nil { |
| 180 | return nil, ErrorFieldCantBeSpecified(*v.CantBeSpecifiedErrStr) |
| 181 | } |
| 182 | |
| 183 | if !v.AllowExplicitNull && val == nil { |
| 184 | return nil, ErrorCannotBeNull(v.Required) |
| 185 | } |
| 186 | return validateInt32Ptr(val, v) |
| 187 | } |
| 188 | |
| 189 | func validateInt32Ptr(val *int32, v *Int32PtrValidation) (*int32, error) { |
| 190 | if val != nil { |
no test coverage detected