kvdb/test: generalize etcd tests
This commit is contained in:
10 files changed
+307
-313
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user