MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / test_max_entries

Method test_max_entries

tests/test_input_processing.py:177–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 assert results[0] == "/history clear" # Most recent first
176
177 def test_max_entries(self):
178 history = InputHistory(max_entries=3)
179 for i in range(5):
180 history.add(f"entry-{i}")
181 assert history.size == 3
182 assert history.entries[0] == "entry-2"
183
184 def test_clear(self):
185 history = InputHistory()

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
InputHistoryClass · 0.90

Tested by

no test coverage detected