MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / test_with_details

Method test_with_details

tests/utils/test_statistics.py:87–99  ·  view source on GitHub ↗

Test OperatorStats with details.

(self)

Source from the content-addressed store, hash-verified

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
102class TestDatasetStats:

Callers

nothing calls this directly

Calls 1

OperatorStatsClass · 0.90

Tested by

no test coverage detected