(ctx context.Context, t testing.TB, tmpDir string)
| 169 | } |
| 170 | |
| 171 | func newStore(ctx context.Context, t testing.TB, tmpDir string) (storage.Store, backend.RawReader, backend.RawWriter) { |
| 172 | rr, ww, _, err := local.New(&local.Config{ |
| 173 | Path: tmpDir + "/traces", |
| 174 | }) |
| 175 | require.NoError(t, err) |
| 176 | |
| 177 | return newStoreWithLogger(ctx, t, test.NewTestingLogger(t), tmpDir), rr, ww |
| 178 | } |
| 179 | |
| 180 | func newStoreWithLogger(ctx context.Context, t testing.TB, log log.Logger, tmpDir string) storage.Store { |
| 181 | s, err := storage.NewStore(storage.Config{ |
no test coverage detected