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

Function TestSearchCompleteBlock

tempodb/tempodb_search_test.go:44–69  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42const attributeWithTerminalChars = `{ } ( ) = ~ ! < > & | ^`
43
44func TestSearchCompleteBlock(t *testing.T) {
45 t.Parallel()
46 for _, v := range encoding.AllEncodingsForWrites() {
47 vers := v.Version()
48 t.Run(vers, func(t *testing.T) {
49 t.Parallel()
50 runCompleteBlockSearchTest(t, vers,
51 searchRunner,
52 traceQLRunner,
53 advancedTraceQLRunner,
54 groupTraceQLRunner,
55 traceQLStructural,
56 traceQLExistence,
57 nestedSet,
58 tagValuesRunner,
59 tagNamesRunner,
60 traceQLDuration,
61 )
62 })
63 if vers == vparquet4.VersionString || vers == vparquet5.VersionString {
64 t.Run("event/link/instrumentation query", func(t *testing.T) {
65 runEventLinkInstrumentationSearchTest(t, vers)
66 })
67 }
68 }
69}
70
71func searchRunner(t *testing.T, _ *tempopb.Trace, wantMeta *tempopb.TraceSearchMetadata, searchesThatMatch, searchesThatDontMatch []*tempopb.SearchRequest, meta *backend.BlockMeta, r Reader, _ common.BackendBlock) {
72 ctx := context.Background()

Callers

nothing calls this directly

Calls 5

AllEncodingsForWritesFunction · 0.92
VersionMethod · 0.65
RunMethod · 0.45

Tested by

no test coverage detected