backendTestCases returns the list of backends to test based on the config
(backends BackendsMask)
| 200 | |
| 201 | // backendTestCases returns the list of backends to test based on the config |
| 202 | func 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 |
| 222 | func runTempoHarness(t *testing.T, harnessCfg TestHarnessConfig, requestedBackend string, testFunc func(*TempoHarness)) { |
no outgoing calls
no test coverage detected