Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 10eb0e6

Browse files
committed
Ensure branch coverage of some if main blocks.
1 parent f3b865f commit 10eb0e6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/testcli.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
from collections.abc import Sequence
1515
from typing import Any
1616

17+
# These imports must remain, even though the module contents are not used directly!
18+
import wwvb.dut1table
19+
import wwvb.gen
20+
21+
# The asserts below are to help prevent their removal by a linter.
22+
assert wwvb.dut1table.__name__ == "wwvb.dut1table"
23+
assert wwvb.gen.__name__ == "wwvb.gen"
24+
1725
coverage_add = ("-m", "coverage", "run", "--branch", "-p") if "COVERAGE_RUN" in os.environ else ()
1826

1927

0 commit comments

Comments
 (0)