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

Method test_known_arg

tests/test_matcher.py:38–47  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 self.assertMatchSingle("bar", s.find_man_page("bar")[0], matchedresult)
37
38 def test_known_arg(self):
39 matchedresult = [
40 MR(0, 3, "bar synopsis", "bar"),
41 MR(4, 10, "-a desc", "-a --a"),
42 MR(11, 13, "-? help text", "-?"),
43 ]
44
45 self.assertMatchSingle(
46 "bar -a --a -?", s.find_man_page("bar")[0], matchedresult
47 )
48
49 def test_arg_in_fuzzy_with_expected_value(self):
50 cmd = "baz -ab arg"

Callers

nothing calls this directly

Calls 2

assertMatchSingleMethod · 0.95
find_man_pageMethod · 0.45

Tested by

no test coverage detected