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

Method test_long

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

Source from the content-addressed store, hash-verified

332 self.assertMatchSingle("bar -ax", s.find_man_page("bar")[0], matchedresult)
333
334 def test_long(self):
335 cmd = "bar --b=b foo"
336 matchedresult = [
337 MR(0, 3, "bar synopsis", "bar"),
338 MR(4, 9, "-b <arg> desc", "--b=b"),
339 MR(10, 13, None, "foo"),
340 ]
341
342 self.assertMatchSingle(cmd, s.find_man_page("bar")[0], matchedresult)
343
344 def test_arg_no_dash(self):
345 cmd = "baz ab -x"

Callers

nothing calls this directly

Calls 2

assertMatchSingleMethod · 0.95
find_man_pageMethod · 0.45

Tested by

no test coverage detected