MCPcopy Create free account
hub / github.com/idank/explainshell / lookup

Method lookup

tests/test_caching_store.py:173–177  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

171 )
172
173 def lookup(name: str) -> str:
174 try:
175 return store.find_man_page(name)[0].name
176 except errors.ProgramDoesNotExist:
177 return "missing"
178
179 # Warm a positive and negative cache entry, then hammer mixed hits,
180 # misses, cold lookups, and oversized uncached entries concurrently.

Callers 2

bootstrap.jsFile · 0.80
bootstrap.min.jsFile · 0.80

Calls 1

find_man_pageMethod · 0.45

Tested by

no test coverage detected