MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / test_statistics

Method test_statistics

tests/test_learning.py:229–236  ·  view source on GitHub ↗

Should return strategy statistics.

(self)

Source from the content-addressed store, hash-verified

227 assert strategies[0]["success_rate"] >= strategies[-1]["success_rate"]
228
229 def test_statistics(self):
230 """Should return strategy statistics."""
231 tracker = StrategyTracker()
232 tracker.record_attempt("test_strategy", "test_error", True, 1.0)
233
234 stats = tracker.get_statistics()
235 assert "total_strategies" in stats
236 assert "overall_success_rate" in stats
237
238
239class TestLearningManager:

Callers

nothing calls this directly

Calls 3

record_attemptMethod · 0.95
get_statisticsMethod · 0.95
StrategyTrackerClass · 0.90

Tested by

no test coverage detected