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

Method test_search

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

Source from the content-addressed store, hash-verified

166 assert history.previous() is None
167
168 def test_search(self):
169 history = InputHistory()
170 history.add("/help")
171 history.add("hello world")
172 history.add("/history clear")
173 results = history.search("/h")
174 assert len(results) == 2
175 assert results[0] == "/history clear" # Most recent first
176
177 def test_max_entries(self):
178 history = InputHistory(max_entries=3)

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
searchMethod · 0.95
InputHistoryClass · 0.90

Tested by

no test coverage detected