Skip to content

refactor: drop the tab writer from mismatch output - #315

Merged
FalkWoldmann merged 2 commits into
masterfrom
drop-tab-writer
Sep 27, 2026
Merged

FalkWoldmann merged 2 commits into
masterfrom
drop-tab-writer

Conversation

@FalkWoldmann

@FalkWoldmann FalkWoldmann commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #297. The mismatch report only aligns two small tables (the expected key/value rows and the Matcher/Docs footer) plus some indented lines, so plain format width specifiers do the job and the tab writer can go.

This also fixes values with tabs in them (e.g. TSV bodies). They were run through the tab writer too and ended up re-aligned into columns instead of printed as received.

Output is otherwise unchanged. I added unit tests that pin the exact output; they pass against both the old writer and this change. The tab test fails on the old writer.

@codecov

codecov Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.92386% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/api/output.rs 94.92% 10 Missing ⚠️

📢 Thoughts on this report? Let us know!

Only two small tables and a few indented lines need alignment, so format
them directly. This also stops values containing tabs (e.g. TSV bodies)
from being re-aligned into columns in the report.
@FalkWoldmann
FalkWoldmann merged commit a50107c into master Sep 27, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant