MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Equals

Method Equals

pkg/sql/inverted/expression.go:128–138  ·  view source on GitHub ↗

Equals returns true if this Spans has the same spans as the given Spans, in the same order.

(other Spans)

Source from the content-addressed store, hash-verified

126// Equals returns true if this Spans has the same spans as the given
127// Spans, in the same order.
128func (is Spans) Equals(other Spans) bool {
129 if len(is) != len(other) {
130 return false
131 }
132 for i := range is {
133 if !is[i].Equals(other[i]) {
134 return false
135 }
136 }
137 return true
138}
139
140// Format pretty-prints the spans.
141func (is Spans) Format(tp treeprinter.Node, label string, redactable bool) {

Callers

nothing calls this directly

Calls 1

EqualsMethod · 0.45

Tested by

no test coverage detected