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

Function backendTestCases

integration/util/harness.go:202–219  ·  view source on GitHub ↗

backendTestCases returns the list of backends to test based on the config

(backends BackendsMask)

Source from the content-addressed store, hash-verified

200
201// backendTestCases returns the list of backends to test based on the config
202func backendTestCases(backends BackendsMask) []backendTestCase {
203 var result []backendTestCase
204
205 if backends&BackendObjectStorageS3 != 0 {
206 result = append(result, backendTestCase{BackendObjectStorageS3, backend.S3})
207 }
208 if backends&BackendObjectStorageAzure != 0 {
209 result = append(result, backendTestCase{BackendObjectStorageAzure, backend.Azure})
210 }
211 if backends&BackendObjectStorageGCS != 0 {
212 result = append(result, backendTestCase{BackendObjectStorageGCS, backend.GCS})
213 }
214 if backends&BackendLocal != 0 {
215 result = append(result, backendTestCase{BackendLocal, backend.Local})
216 }
217
218 return result
219}
220
221// runTempoHarness is the internal implementation that sets up and runs a single harness instance
222func runTempoHarness(t *testing.T, harnessCfg TestHarnessConfig, requestedBackend string, testFunc func(*TempoHarness)) {

Callers 1

RunIntegrationTestsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected