(t *testing.T, w *worker, errCh chan error)
| 319 | } |
| 320 | |
| 321 | func runWorker(t *testing.T, w *worker, errCh chan error) (historyRecords, error) { |
| 322 | rs, err := w.run() |
| 323 | if len(rs) > 0 && err == nil { |
| 324 | if terr := validateIncrementalTxid(rs); terr != nil { |
| 325 | txidErr := fmt.Errorf("[%s]: %w", w.name(), terr) |
| 326 | t.Error(txidErr) |
| 327 | errCh <- txidErr |
| 328 | return rs, txidErr |
| 329 | } |
| 330 | } |
| 331 | return rs, err |
| 332 | } |
| 333 | |
| 334 | type worker struct { |
| 335 | id int |
no test coverage detected