Commit b2d17ab
committed
test(roots): close two CI coverage gaps
- Add a test for a decorated tool that takes a non-path string
parameter alongside a path parameter. Covers the previously
unexercised loop-continue branch in within_roots_check when a
str/Path argument is found whose name isn't `path` / `*_path`.
- Replace placeholder return bodies in the "decorator denies"
tests with `raise AssertionError(...) # pragma: no cover`,
so the unreachable tool bodies don't drop project coverage
below CI's fail_under=100 threshold while still documenting
that they must not run.1 parent 5306da2 commit b2d17ab
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
155 | 170 | | |
156 | 171 | | |
157 | 172 | | |
158 | | - | |
| 173 | + | |
159 | 174 | | |
160 | 175 | | |
161 | 176 | | |
0 commit comments