ensureFullySorted recursively ensures that all child segmentStacks are sorted from 0 to end.
()
| 221 | // ensureFullySorted recursively ensures that all child segmentStacks |
| 222 | // are sorted from 0 to end. |
| 223 | func (ss *segmentStack) ensureFullySorted() { |
| 224 | ss.ensureSorted(0, len(ss.a)-1) |
| 225 | for _, childSnapshot := range ss.childSegStacks { |
| 226 | childSnapshot.ensureFullySorted() |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | func (ss *segmentStack) isEmpty() bool { |
| 231 | if len(ss.a) > 0 { |
no test coverage detected