Function
testOpenStoreTableForBenchmark
(t *testing.B, tableName string, encoder kvstore.ValueEncoder[T])
Source from the content-addressed store, hash-verified
| 188 | } |
| 189 | |
| 190 | func testOpenStoreTableForBenchmark[T any](t *testing.B, tableName string, encoder kvstore.ValueEncoder[T]) *kvstore.Table[T] { |
| 191 | var err error |
| 192 | testingStore, err = kvstore.OpenStore("test") |
| 193 | if err != nil { |
| 194 | t.Fatal(err) |
| 195 | } |
| 196 | |
| 197 | db, err := testingStore.NewDB("db1") |
| 198 | if err != nil { |
| 199 | t.Fatal(err) |
| 200 | } |
| 201 | |
| 202 | table, err := kvstore.NewTable[T](tableName, encoder) |
| 203 | if err != nil { |
| 204 | t.Fatal(err) |
| 205 | } |
| 206 | db.AddTable(table) |
| 207 | |
| 208 | return table |
| 209 | } |
| 210 | |
| 211 | func testCountStore(t *testing.T) { |
| 212 | var err error |
Callers
nothing calls this directly
Tested by
no test coverage detected