Skip to content

Commit

Permalink
test_bash: update behavior
Browse files Browse the repository at this point in the history
With the last commit wich updates how subshells are parsed, the behavior (minor
change) of kcov has changed; indeed, in order to skip the ')' for subshell
functions, subshells, in general, does not have their ')' hit anymore.

See-also: a750d47
See-also: #457
Signed-off-by: Mattéo Rossillol‑‑Laruelle <[email protected]>
  • Loading branch information
beatussum committed Jul 31, 2024
1 parent c550cf7 commit 3b2ea3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tools/test_bash.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def runTest(self):
dom = cobertura.parseFile(self.outbase + "/kcov/subshell.sh/cobertura.xml")
self.assertIsNone(cobertura.hitsPerLine(dom, "subshell.sh", 1))
self.assertEqual(2, cobertura.hitsPerLine(dom, "subshell.sh", 4))
self.assertEqual(0, cobertura.hitsPerLine(dom, "subshell.sh", 8))
assert cobertura.hitsPerLine(dom, "subshell.sh", 8) is None


class bash_handle_all_output(libkcov.TestCase):
Expand Down

0 comments on commit 3b2ea3d

Please sign in to comment.