Commit 7d17e2b
committed
Fix coverage gaps with pragma: no cover annotations
Add pragma: no cover to unreachable error paths and test-only code
to achieve 100% coverage:
- client/session.py track_elicitation(): Method not yet implemented
by servers, marked lines 525-529
- server/elicitation.py line 168: Unreachable else branch for
invalid action values
- test_url_elicitation.py lines 236, 301, 314, 365: Defensive else
branches in test tool handlers that are never reached due to test
assertions
All missing coverage was in defensive error handling paths or
unimplemented features, not in production code paths.1 parent 5c52a7c commit 7d17e2b
File tree
3 files changed
+8
-8
lines changed- src/mcp
- client
- server
- tests/server/fastmcp
3 files changed
+8
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
525 | | - | |
526 | | - | |
| 525 | + | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| |||
0 commit comments