MCPcopy Index your code
hub / github.com/google/mangle / contains

Method contains

factstore/interval_tree.go:86–88  ·  view source on GitHub ↗

contains checks if an exact interval exists in the tree.

(interval ast.Interval)

Source from the content-addressed store, hash-verified

84
85// contains checks if an exact interval exists in the tree.
86func (t *IntervalTree) contains(interval ast.Interval) bool {
87 return t.findExact(t.root, interval)
88}
89
90// findExact searches for an exact interval match.
91func (t *IntervalTree) findExact(node *treeNode, interval ast.Interval) bool {

Callers 1

InsertMethod · 0.95

Calls 1

findExactMethod · 0.95

Tested by

no test coverage detected