(t *testing.T, fileName string)
| 216 | } |
| 217 | |
| 218 | func getDummyWorker(t *testing.T, fileName string) *worker { |
| 219 | t.Helper() |
| 220 | |
| 221 | if workers == nil { |
| 222 | workers = []*worker{} |
| 223 | } |
| 224 | |
| 225 | worker, _ := newWorker(workerOpt{ |
| 226 | fileName: testDataPath + "/" + fileName, |
| 227 | num: 1, |
| 228 | }) |
| 229 | workers = append(workers, worker) |
| 230 | |
| 231 | return worker |
| 232 | } |
| 233 | |
| 234 | func assertRequestBody(t *testing.T, url string, expected string) { |
| 235 | r := httptest.NewRequest("GET", url, nil) |
no test coverage detected