kvdb/test: generalize etcd tests

This commit is contained in:
Joost Jager committed 2021-07-12 11:31:05 +02:00
1 parent bb5c3f3b51
commit 3c6d35ec41
10 files changed
+307 -313

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
package kvdb
type KV struct {
key string
val string
}
func reverseKVs(a []KV) []KV {
for i, j := 0, len(a)-1; i < j; i, j = i+1, j-1 {
a[i], a[j] = a[j], a[i]
}
return a
}