(provided int32, allowed int32, allowedVals ...int32)
| 240 | } |
| 241 | |
| 242 | func ErrorInvalidInt32(provided int32, allowed int32, allowedVals ...int32) error { |
| 243 | allAllowedVals := append([]int32{allowed}, allowedVals...) |
| 244 | return errors.WithStack(&errors.Error{ |
| 245 | Kind: ErrInvalidInt32, |
| 246 | Message: fmt.Sprintf("invalid value (got %s, must be %s)", s.UserStr(provided), s.UserStrsOr(allAllowedVals)), |
| 247 | }) |
| 248 | } |
| 249 | |
| 250 | func ErrorInvalidInt(provided int, allowed int, allowedVals ...int) error { |
| 251 | allAllowedVals := append([]int{allowed}, allowedVals...) |
no test coverage detected