IsSingleVal returns true iff the span is equivalent to [val, val].
()
| 103 | |
| 104 | // IsSingleVal returns true iff the span is equivalent to [val, val]. |
| 105 | func (s Span) IsSingleVal() bool { |
| 106 | return s.Start != nil && bytes.Equal(keysbase.PrefixEnd(s.Start), s.End) |
| 107 | } |
| 108 | |
| 109 | // Equals returns true if this span has the same start and end as the given |
| 110 | // span. |
no test coverage detected