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

Method test_pipe

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

Source from the content-addressed store, hash-verified

567 self.assertEqual(groups[2].results, matchedresult[2])
568
569 def test_pipe(self):
570 cmd = "bar | baz"
571 matchedresult = [
572 [MR(4, 5, help_constants.PIPELINES, "|")],
573 [MR(0, 3, "bar synopsis", "bar")],
574 [MR(6, 9, "baz synopsis", "baz")],
575 ]
576
577 groups = matcher.Matcher(cmd, s).match()
578 self.assertEqual(groups[0].results, matchedresult[0])
579 self.assertEqual(groups[1].results, matchedresult[1])
580
581 def test_subshells(self):
582 cmd = "((bar); bar)"

Callers

nothing calls this directly

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected