MCPcopy
hub / github.com/google/mangle / Rebuild

Method Rebuild

factstore/interval_tree.go:231–236  ·  view source on GitHub ↗

Rebuild reconstructs the tree from a list of intervals (for coalescing).

(intervals []ast.Interval)

Source from the content-addressed store, hash-verified

229
230// Rebuild reconstructs the tree from a list of intervals (for coalescing).
231func (t *IntervalTree) Rebuild(intervals []ast.Interval) {
232 t.Clear()
233 for _, interval := range intervals {
234 t.Insert(interval)
235 }
236}
237
238// AVL tree helper functions
239

Callers 2

TestIntervalTree_RebuildFunction · 0.95
CoalesceMethod · 0.80

Calls 2

ClearMethod · 0.95
InsertMethod · 0.95

Tested by 1

TestIntervalTree_RebuildFunction · 0.76