Test OperatorStats with details.
(self)
| 85 | assert stats.rewrite_rate == 0.2 # 20/100 |
| 86 | |
| 87 | def test_with_details(self): |
| 88 | """Test OperatorStats with details.""" |
| 89 | stats = OperatorStats( |
| 90 | name="Test", |
| 91 | input_count=100, |
| 92 | output_count=90, |
| 93 | rejected_count=10, |
| 94 | rewritten_count=0, |
| 95 | execution_time=1.0, |
| 96 | details={"custom_metric": 42}, |
| 97 | ) |
| 98 | |
| 99 | assert stats.details["custom_metric"] == 42 |
| 100 | |
| 101 | |
| 102 | class TestDatasetStats: |
nothing calls this directly
no test coverage detected