Update batch counters and stats from a single file result.
(batch: BatchResult, entry: ExtractionResult)
| 103 | |
| 104 | |
| 105 | def _tally(batch: BatchResult, entry: ExtractionResult) -> None: |
| 106 | """Update batch counters and stats from a single file result.""" |
| 107 | if entry.outcome == ExtractionOutcome.SUCCESS: |
| 108 | batch.stats += entry.stats |
| 109 | batch.n_succeeded += 1 |
| 110 | elif entry.outcome == ExtractionOutcome.SKIPPED: |
| 111 | batch.n_skipped += 1 |
| 112 | else: |
| 113 | batch.n_failed += 1 |
| 114 | |
| 115 | |
| 116 | def _extract_one(extractor: Extractor, gz_path: str) -> ExtractionResult: |
no outgoing calls
no test coverage detected