Skip to content

Commit

Permalink
add unittest for multiget
Browse files Browse the repository at this point in the history
  • Loading branch information
Or Friedmann committed Apr 3, 2023
1 parent 622599d commit 8069dbd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/ldb_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ def testStringBatchPut(self):
self.assertRunFAIL("batchput k1")
self.assertRunFAIL("batchput k1 v1 k2")

def testMultiGet(self):
print("Running testMultiGet...")
self.assertRunOK("batchput x1 y1 x2 y2 --create_if_missing", "OK")
self.assertRunOK("multiget x1 x2", "x1 ==> y1\nx2 ==> y2")
self.assertRunFAIL("multiget x2 x3")

def testBlobBatchPut(self):
print("Running testBlobBatchPut...")

Expand Down

0 comments on commit 8069dbd

Please sign in to comment.