MCPcopy Index your code
hub / github.com/idank/explainshell / test_dot_command

Method test_dot_command

tests/test_store.py:147–158  ·  view source on GitHub ↗

The '.' command (source) should be looked up without splitting on dot.

(self, store)

Source from the content-addressed store, hash-verified

145 store.find_man_page("nosuchprogram")
146
147 def test_dot_command(self, store):
148 """The '.' command (source) should be looked up without splitting on dot."""
149 mp = ParsedManpage(
150 source="ubuntu/26.04/1/..1.gz",
151 name=".",
152 synopsis=". - source a file",
153 aliases=[(".", 10)],
154 )
155 store.add_manpage(mp, _make_raw())
156
157 results = store.find_man_page(".")
158 assert results[0].name == "."
159
160
161class TestHasManpageSource:

Callers

nothing calls this directly

Calls 4

ParsedManpageClass · 0.90
add_manpageMethod · 0.80
_make_rawFunction · 0.70
find_man_pageMethod · 0.45

Tested by

no test coverage detected