Ensure branch coverage of some if main blocks.

This commit is contained in:
Jeff Epler 2025-07-24 14:03:13 -05:00
parent f3b865fafa
commit 10eb0e67d3

View file

@ -14,6 +14,14 @@ import unittest
from collections.abc import Sequence
from typing import Any
# These imports must remain, even though the module contents are not used directly!
import wwvb.dut1table
import wwvb.gen
# The asserts below are to help prevent their removal by a linter.
assert wwvb.dut1table.__name__ == "wwvb.dut1table"
assert wwvb.gen.__name__ == "wwvb.gen"
coverage_add = ("-m", "coverage", "run", "--branch", "-p") if "COVERAGE_RUN" in os.environ else ()