Statistics for deletion operations.
| 70 | |
| 71 | @dataclass |
| 72 | class DeletionStats: |
| 73 | """Statistics for deletion operations.""" |
| 74 | deleted: int = 0 |
| 75 | failed: int = 0 |
| 76 | vault_changed: bool = False |
| 77 | |
| 78 | def add(self, other): |
| 79 | """Add another DeletionStats to this one.""" |
| 80 | self.deleted += other.deleted |
| 81 | self.failed += other.failed |
| 82 | self.vault_changed = self.vault_changed or other.vault_changed |
| 83 | |
| 84 | |
| 85 | class DeletionValidator: |
no outgoing calls
no test coverage detected