MCPcopy Create free account
hub / github.com/Tong89/smartNode / test_compare_zero_delta

Method test_compare_zero_delta

tests/test_store.py:164–170  ·  view source on GitHub ↗
(self, engine, store)

Source from the content-addressed store, hash-verified

162 store.compare("存在", "不存在")
163
164 def test_compare_zero_delta(self, engine, store):
165 store.save_scenario("A", engine, _mock_stats())
166 store.save_scenario("B", engine, _mock_stats())
167 report = store.compare("A", "B")
168 # 完全相同的统计,差值应为 0
169 assert report["metrics"]["acceptance_rate"]["delta"] == pytest.approx(0.0)
170 assert "不显著" in report["summary"]
171
172
173class TestScenarioStoreSwitchTo:

Callers

nothing calls this directly

Calls 3

_mock_statsFunction · 0.85
save_scenarioMethod · 0.80
compareMethod · 0.80

Tested by

no test coverage detected