Structured test result
| 34 | @typechecked |
| 35 | @dataclass |
| 36 | class TestResult: |
| 37 | """Structured test result""" |
| 38 | |
| 39 | type: TestResultType |
| 40 | message: str |
| 41 | test_name: Optional[str] = None |
| 42 | details: Optional[dict[str, Any]] = None |
| 43 | timestamp: float = 0.0 |
| 44 | |
| 45 | def __post_init__(self): |
| 46 | if not self.timestamp: |
| 47 | self.timestamp = time.time() |
| 48 | |
| 49 | |
| 50 | @typechecked |
no outgoing calls