------------------------------------------------------ Len returns the number of ops in the segment.
()
| 297 | |
| 298 | // Len returns the number of ops in the segment. |
| 299 | func (a *segment) Len() int { |
| 300 | return len(a.kvs) / 2 |
| 301 | } |
| 302 | |
| 303 | func (a *segment) Swap(i, j int) { |
| 304 | x := i * 2 |
no outgoing calls
no test coverage detected