MCPcopy
hub / github.com/idank/explainshell / test_comsub_as_first_word

Method test_comsub_as_first_word

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

Source from the content-addressed store, hash-verified

690 )
691
692 def test_comsub_as_first_word(self):
693 cmd = "$(a) b"
694
695 m = matcher.Matcher(cmd, s)
696 groups = m.match()
697 self.assertEqual(len(groups), 2)
698 self.assertEqual(groups[0].results, [])
699 self.assertEqual(groups[1].results, [MR(0, 6, None, "$(a) b")])
700
701 # check expansions
702 self.assertEqual(m.expansions, [(2, 3, "substitution")])
703
704 def test_procsub(self):
705 cmd = "withargs -b <(a) >(b)"

Callers

nothing calls this directly

Calls 1

matchMethod · 0.95

Tested by

no test coverage detected