MCPcopy
hub / github.com/etcd-io/etcd / Less

Method Less

tests/integration/v3_watch_test.go:821–823  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

819func (evs eventsSortByKey) Len() int { return len(evs) }
820func (evs eventsSortByKey) Swap(i, j int) { evs[i], evs[j] = evs[j], evs[i] }
821func (evs eventsSortByKey) Less(i, j int) bool {
822 return bytes.Compare(evs[i].Kv.Key, evs[j].Kv.Key) < 0
823}
824
825func TestV3WatchMultipleEventsPutUnsynced(t *testing.T) {
826 integration.BeforeTest(t)

Callers

nothing calls this directly

Calls 1

CompareMethod · 0.65

Tested by

no test coverage detected