(chunkSize int)
| 10 | } |
| 11 | |
| 12 | func New[T any](chunkSize int) *Ring[T] { |
| 13 | if chunkSize < 1 { |
| 14 | panic("chunkSize must be greater than zero") |
| 15 | } |
| 16 | return &Ring[T]{ |
| 17 | chunkSize: chunkSize, |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | func (r *Ring[T]) Len() int { |
| 22 | return r.len |
nothing calls this directly
no outgoing calls
no test coverage detected