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

Method test_arg_with_expected_value

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

Source from the content-addressed store, hash-verified

214 self.assertMatchSingle(cmd, s.find_man_page("withargs")[0], matchedresult)
215
216 def test_arg_with_expected_value(self):
217 cmd = "bar -b arg --b arg"
218 matchedresult = [
219 MR(0, 3, "bar synopsis", "bar"),
220 MR(4, 18, "-b <arg> desc", "-b arg --b arg"),
221 ]
222
223 self.assertMatchSingle(cmd, s.find_man_page("bar")[0], matchedresult)
224
225 def test_arg_with_expected_value_from_list(self):
226 cmd = "bar -c one"

Callers

nothing calls this directly

Calls 2

assertMatchSingleMethod · 0.95
find_man_pageMethod · 0.45

Tested by

no test coverage detected