This commit is contained in:
Jaremy Creechley 2023-08-31 15:40:43 -07:00
parent 72fc22707e
commit a13526a886
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -27,42 +27,11 @@ suite "Test Basic MemoryDatastore":
basicStoreTests(memStore, key, bytes, otherBytes)
suite "Test Misc MemoryDatastore":
let
path = currentSourcePath() # get this file's name
basePath = "tests_data"
basePathAbs = path.parentDir / basePath
bytes = "some bytes".toBytes
setup:
removeDir(basePathAbs)
require(not dirExists(basePathAbs))
createDir(basePathAbs)
teardown:
removeDir(basePathAbs)
require(not dirExists(basePathAbs))
suite "Test Query":
let
path = currentSourcePath() # get this file's name
basePath = "tests_data"
basePathAbs = path.parentDir / basePath
var
ds: MemoryDatastore
var ds: MemoryDatastore
setup:
removeDir(basePathAbs)
require(not dirExists(basePathAbs))
createDir(basePathAbs)
ds = MemoryDatastore.new()
teardown:
removeDir(basePathAbs)
require(not dirExists(basePathAbs))
queryTests(ds, false)