(t *testing.T)
| 221 | } |
| 222 | |
| 223 | func newTestResponse(t *testing.T) *testPipelineResponse { |
| 224 | serviceStats := &tempopb.ServiceStats{ |
| 225 | SpanCount: 1, |
| 226 | ErrorCount: 1, |
| 227 | } |
| 228 | |
| 229 | rec := httptest.NewRecorder() |
| 230 | err := (&jsonpb.Marshaler{}).Marshal(rec, serviceStats) |
| 231 | require.NoError(t, err) |
| 232 | |
| 233 | return &testPipelineResponse{ |
| 234 | r: rec.Result(), |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | func newFailedTestResponse() *testPipelineResponse { |
| 239 | rec := httptest.NewRecorder() |
no test coverage detected