MCPcopy
hub / github.com/grafana/tempo / newTestStore

Function newTestStore

cmd/tempo/app/modules_test.go:44–67  ·  view source on GitHub ↗
(t *testing.T, tmpDir string)

Source from the content-addressed store, hash-verified

42}
43
44func newTestStore(t *testing.T, tmpDir string) storage.Store {
45 t.Helper()
46
47 s, err := storage.NewStore(storage.Config{
48 Trace: tempodb.Config{
49 Backend: backend.Local,
50 Local: &local.Config{
51 Path: tmpDir + "/traces",
52 },
53 Block: &common.BlockConfig{
54 BloomFP: 0.01,
55 BloomShardSizeBytes: 100_000,
56 Version: encoding.LatestEncoding().Version(),
57 },
58 WAL: &wal.Config{
59 Filepath: tmpDir + "/wal",
60 },
61 BlocklistPoll: 100 * time.Millisecond,
62 },
63 }, nil, log.NewNopLogger())
64 require.NoError(t, err)
65
66 return s
67}
68
69func TestConfigureGenerator(t *testing.T) {
70 t.Run("single binary does not consume from kafka", func(t *testing.T) {

Calls 3

NewStoreFunction · 0.92
LatestEncodingFunction · 0.92
VersionMethod · 0.65

Tested by

no test coverage detected