Commit 5770fdb
committed
mcp(test[server]): cover _format_handles_section empty-visibility branch
``_format_handles_section`` has two output branches: with hints
(``"... prefer (e.g. ...)."``) and without (``"... prefer."``). The
no-hints branch fires when ``visible_tool_names`` is non-None but no
hint tool is in it.
With every current hint tool tagged ``TAG_READONLY`` this branch is
unreachable by the existing tool set — even ``LIBTMUX_SAFETY=readonly``
keeps ``snapshot_pane`` / ``wait_for_text`` / ``search_panes`` visible.
Codecov flagged it as uncovered, and the upcoming Phase 5
(``LIBTMUX_TOOLSETS``) makes it reachable: a user setting
``LIBTMUX_TOOLSETS=server,session`` would hide every pane tool, leaving
``visible_tool_names`` disjoint from every ``_HANDLE_HINTS`` key. Pin
the branch's output now so a regression that emits broken syntax
(trailing ", ).", duplicate periods, etc.) fails loudly.
Pure addition; no source changes. Pulls the empty-set branch from 0%
to 100% coverage.1 parent de39b7a commit 5770fdb
1 file changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
314 | 350 | | |
315 | 351 | | |
316 | 352 | | |
| |||
0 commit comments