Commit 8ce602d
committed
test: reach 100% branch coverage for diagram package
Add tests for extract.py (deep history type, internal transitions with
and without actions, bidirectional compound detection, invalid input,
initial state fallback), dot.py (compound labels with actions, internal
action format, targetless transitions, non-bidirectional anchors), and
__main__.py (via runpy).
Mark unreachable branch in extract.py (history states never have
substates) with pragma: no cover, and add `if __name__` to coverage
exclusions in pyproject.toml.1 parent cc20e85 commit 8ce602d
3 files changed
Lines changed: 197 additions & 116 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
0 commit comments