MCPcopy Index your code
hub / github.com/perkeep/perkeep / TestSQLiteKV

Function TestSQLiteKV

pkg/sorted/sqlite/sqlitekv_test.go:29–44  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27)
28
29func TestSQLiteKV(t *testing.T) {
30 tmpDir, err := os.MkdirTemp("", "camlistore-sqlitekv_test")
31 if err != nil {
32 t.Fatal(err)
33 }
34 defer os.RemoveAll(tmpDir)
35 dbname := filepath.Join(tmpDir, "testdb.sqlite")
36 kv, err := sorted.NewKeyValue(jsonconfig.Obj{
37 "type": "sqlite",
38 "file": dbname,
39 })
40 if err != nil {
41 t.Fatalf("Could not create sqlite sorted kv at %v: %v", dbname, err)
42 }
43 kvtest.TestSorted(t, kv)
44}

Callers

nothing calls this directly

Calls 4

NewKeyValueFunction · 0.92
TestSortedFunction · 0.92
FatalMethod · 0.80
FatalfMethod · 0.65

Tested by

no test coverage detected