(t *testing.T)
| 27 | ) |
| 28 | |
| 29 | func 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 | } |
nothing calls this directly
no test coverage detected