Problem
parse_worktree_list with malformed input (missing HEAD line, worktree line without path) is not tested. The filter_map with ? operators silently drops malformed entries, which is correct but unverified.
Solution
Add a unit test with malformed porcelain input (e.g., missing HEAD) and verify entries are silently skipped.
Problem
parse_worktree_listwith malformed input (missing HEAD line, worktree line without path) is not tested. Thefilter_mapwith?operators silently drops malformed entries, which is correct but unverified.Solution
Add a unit test with malformed porcelain input (e.g., missing HEAD) and verify entries are silently skipped.