Ensure branch coverage of some if main blocks.
This commit is contained in:
parent
f3b865fafa
commit
10eb0e67d3
1 changed files with 8 additions and 0 deletions
|
|
@ -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 ()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue