Commit 049b403
committed
Add coverage pragmas for SSE polling reconnection code
The SSE polling reconnection code paths run in a subprocess during testing,
making them difficult to cover with the main test process's coverage
instrumentation. Add pragma comments to exclude these from coverage
requirements:
- Client _attempt_sse_reconnection method and call site
- Server StreamableHTTPSessionManager.close_sse_stream method
- Test callback branch for empty data handling
Github-Issue:#16541 parent 9390ef9 commit 049b403
File tree
3 files changed
+7
-6
lines changed- src/mcp
- client
- server
3 files changed
+7
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
| 423 | + | |
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
285 | 287 | | |
286 | 288 | | |
287 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1907 | 1907 | | |
1908 | 1908 | | |
1909 | 1909 | | |
1910 | | - | |
1911 | | - | |
1912 | | - | |
| 1910 | + | |
| 1911 | + | |
1913 | 1912 | | |
1914 | 1913 | | |
1915 | 1914 | | |
| |||
0 commit comments