| 449 | |
| 450 | |
| 451 | class FileInfo: |
| 452 | def __init__(self, name: str, module: str) -> None: |
| 453 | self.name = name |
| 454 | self.module = module |
| 455 | self.counts = [0] * len(stats.precision_names) |
| 456 | |
| 457 | def total(self) -> int: |
| 458 | return sum(self.counts) |
| 459 | |
| 460 | def attrib(self) -> dict[str, str]: |
| 461 | return {name: str(val) for name, val in sorted(zip(stats.precision_names, self.counts))} |
| 462 | |
| 463 | |
| 464 | class MemoryXmlReporter(AbstractReporter): |