MCPcopy
hub / github.com/idank/explainshell / test_limit

Method test_limit

tests/test_store.py:434–437  ·  view source on GitHub ↗
(self, store)

Source from the content-addressed store, hash-verified

432 assert events[1]["metadata"]["run"] == 1
433
434 def test_limit(self, store):
435 for i in range(10):
436 store.log_event("extraction", {"run": i})
437 assert len(store.get_events(limit=3)) == 3
438
439 def test_empty_metadata(self, store):
440 store.log_event("upload")

Callers

nothing calls this directly

Calls 3

rangeFunction · 0.85
log_eventMethod · 0.80
get_eventsMethod · 0.80

Tested by

no test coverage detected