MCPcopy
hub / github.com/grafana/dskit / evalCmps

Method evalCmps

kv/etcd/mock.go:384–392  ·  view source on GitHub ↗

evalCmps executes the given comparisons, stopping as soon as the first one evaluates to false.

(cmps []clientv3.Cmp)

Source from the content-addressed store, hash-verified

382// evalCmps executes the given comparisons, stopping as soon as the first one
383// evaluates to false.
384func (m *mockKV) evalCmps(cmps []clientv3.Cmp) bool {
385 for _, c := range cmps {
386 if !m.evalCmp(c) {
387 return false
388 }
389 }
390
391 return true
392}
393
394// evalCmp executes the given comparison between some field of a key-value
395// pair stored in mockKV and a provided value. The field may be the value

Callers 1

doTxnMethod · 0.95

Calls 1

evalCmpMethod · 0.95

Tested by

no test coverage detected