(val *int64, v *Int64PtrValidation)
| 176 | } |
| 177 | |
| 178 | func ValidateInt64PtrProvided(val *int64, v *Int64PtrValidation) (*int64, 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 validateInt64Ptr(val, v) |
| 187 | } |
| 188 | |
| 189 | func validateInt64Ptr(val *int64, v *Int64PtrValidation) (*int64, error) { |
| 190 | if val != nil { |
no test coverage detected