MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_update_count_tracks

Function test_update_count_tracks

tests/test_learning_weights.py:44–51  ·  view source on GitHub ↗

Persistence is via v2_lifecycle/LearnedState; verify update_count increments.

()

Source from the content-addressed store, hash-verified

42
43
44def test_update_count_tracks():
45 """Persistence is via v2_lifecycle/LearnedState; verify update_count increments."""
46 tracker = SignalWeightTracker(initial_weights=[0.4, 0.3, 0.3])
47 assert tracker._update_count == 0
48 tracker.update([0, 1, 2], [False, False, False], 0)
49 assert tracker._update_count == 1
50 tracker.update([0, 1, 2], [False, False, False], 0)
51 assert tracker._update_count == 2

Callers

nothing calls this directly

Calls 2

updateMethod · 0.95
SignalWeightTrackerClass · 0.90

Tested by

no test coverage detected