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

Function regenerateBloomBlobs

tempodb/encoding/common/bloom_test.go:210–220  ·  view source on GitHub ↗

nolint:unused

(t *testing.T, b *ShardedBloomFilter)

Source from the content-addressed store, hash-verified

208
209// nolint:unused
210func regenerateBloomBlobs(t *testing.T, b *ShardedBloomFilter) {
211 t.Helper()
212 require.NoError(t, os.MkdirAll("test-data", 0o755))
213 bloomBytes, err := b.Marshal()
214 require.NoError(t, err)
215 for i, shard := range bloomBytes {
216 path := fmt.Sprintf("test-data/bloom-%d", i)
217 require.NoError(t, os.WriteFile(path, shard, 0o644))
218 }
219 t.Logf("wrote %d test bloom blobs to test-data/ - commit them", len(bloomBytes))
220}

Callers

nothing calls this directly

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected