Commit 6173587
committed
test: cover defensive branches in docstring parser
The MCP repo enforces 100% test coverage. Add two tests that exercise
the previously uncovered defensive branches in _parse_param_line:
- test_param_line_with_unclosed_parenthesis covers the end_idx == -1
fallback when a type annotation has no closing paren
- test_param_line_starting_with_non_word covers the regex no-match
fallback for lines that do not begin with a word character1 parent c669441 commit 6173587
1 file changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
0 commit comments