You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make cygwin gate tests non-vacuous via pure shouldStyle
Bugbot correctly flagged that the cygwin regression tests used
non-terminal writers (temp files, bytes.Buffer), so IsTerminalWriter
returned false before the TERM check was ever reached — they passed
identically with or without the fix.
Split the decision into a pure shouldStyle(noColor, term,
isTerminalWriter) so tests can simulate a terminal writer and actually
reach the NO_COLOR and TERM gates, and drop the vacuous tests in
status_test.go and mdrender_test.go that asserted outcomes already
guaranteed by the writer check.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments