(maxLength int)
| 335 | } |
| 336 | |
| 337 | func ErrorTooManyElements(maxLength int) error { |
| 338 | return errors.WithStack(&errors.Error{ |
| 339 | Kind: ErrTooManyElements, |
| 340 | Message: fmt.Sprintf("must contain at most %d elements", maxLength), |
| 341 | }) |
| 342 | } |
| 343 | |
| 344 | func ErrorWrongNumberOfElements(invalidLengths []int) error { |
| 345 | invalidElementsStr := "elements" |
no test coverage detected