evalCmps executes the given comparisons, stopping as soon as the first one evaluates to false.
(cmps []clientv3.Cmp)
| 382 | // evalCmps executes the given comparisons, stopping as soon as the first one |
| 383 | // evaluates to false. |
| 384 | func (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 |