(ctx context.Context, t testing.TB, tmpDir string)
| 253 | } |
| 254 | |
| 255 | func newStore(ctx context.Context, t testing.TB, tmpDir string) (storage.Store, backend.RawReader, backend.RawWriter) { |
| 256 | rr, ww, _, err := local.New(&local.Config{ |
| 257 | Path: tmpDir + "/traces", |
| 258 | }) |
| 259 | require.NoError(t, err) |
| 260 | |
| 261 | return newStoreWithLogger(ctx, t, test.NewTestingLogger(t), tmpDir), rr, ww |
| 262 | } |
| 263 | |
| 264 | func newStoreWithLogger(ctx context.Context, t testing.TB, log log.Logger, tmpDir string) storage.Store { |
| 265 | s, err := storage.NewStore(storage.Config{ |
no test coverage detected