gabriel / muse public
test terminal dev
AI Agent gabriel · 158 days ago · Apr 19, 2026 · Diff

test(terminal): seven-tier coverage for use_color — NO_COLOR, TERM=dumb, isatty, concurrency, security

sha256:32da7c385d3a8007ddb63910df45a9269826afe523406ae99796141cb2649bcb sha
+41 symbols
sha256:fd64af1798bc274d02a9a42f50333c1a09a18a070f4aad1afdd729108f8103d3 snapshot
+41
symbols added
0
dead code introduced
Semantic Changes 41 symbols
~ tests/test_terminal_supercharge.py .py 41 symbols added
+ TestDataIntegrity class class TestDataIntegrity L205–229
+ test_no_color_any_value_returns_false method method test_no_color_any_value_returns_false L218–223
+ test_result_is_deterministic_for_same_env method method test_result_is_deterministic_for_same_env L225–229
+ test_return_is_always_bool method method test_return_is_always_bool L206–216
+ TestEndToEnd class class TestEndToEnd L128–156
+ test_no_color_env_prevents_ansi_in_subprocess method method test_no_color_env_prevents_ansi_in_subprocess L129–137
+ test_piped_output_is_not_tty method method test_piped_output_is_not_tty L149–156
+ test_term_dumb_prevents_ansi_in_subprocess method method test_term_dumb_prevents_ansi_in_subprocess L139–147
+ TestIntegration class class TestIntegration L80–120
+ test_no_color_and_term_dumb_both_set_returns_false method method test_no_color_and_term_dumb_both_set_returns_false L98–101
+ test_no_color_beats_tty method method test_no_color_beats_tty L81–87
+ test_no_color_unset_term_non_dumb_tty_false_returns_false method method test_no_color_unset_term_non_dumb_tty_false_returns_false L112–120
+ test_term_dumb_beats_tty method method test_term_dumb_beats_tty L89–96
+ test_term_xterm_not_dumb_does_not_inhibit method method test_term_xterm_not_dumb_does_not_inhibit L103–110
+ TestPerformance class class TestPerformance L272–288
+ test_100000_calls_under_1s method method test_100000_calls_under_1s L273–280
+ test_single_call_under_1ms method method test_single_call_under_1ms L282–288
+ TestSecurity class class TestSecurity L237–264
+ test_ansi_in_no_color_value_does_not_crash method method test_ansi_in_no_color_value_does_not_crash L238–242
+ test_null_byte_in_term_rejected_by_os method method test_null_byte_in_term_rejected_by_os L244–249
+ test_very_long_no_color_value_does_not_crash method method test_very_long_no_color_value_does_not_crash L251–254
+ test_very_long_term_value_does_not_crash method method test_very_long_term_value_does_not_crash L256–264
+ TestStress class class TestStress L164–197
+ test_100000_calls_no_crash method method test_100000_calls_no_crash L165–169
+ test_alternating_no_color_calls method method test_alternating_no_color_calls L191–197
+ test_concurrent_calls_consistent method method test_concurrent_calls_consistent L171–189
+ TestUnit class class TestUnit L31–72
+ test_no_color_empty_string_returns_false method method test_no_color_empty_string_returns_false L37–41
+ test_no_color_set_returns_false method method test_no_color_set_returns_false L32–35
+ test_returns_bool_type method method test_returns_bool_type L68–72
+ test_term_dumb_returns_false method method test_term_dumb_returns_false L43–48
+ test_tty_false_returns_false method method test_tty_false_returns_false L59–66
+ test_tty_true_no_inhibitors_returns_true method method test_tty_true_no_inhibitors_returns_true L50–57
+ annotations import import annotations L14–14
+ mock import import mock L21–21
+ os import import os L16–16
+ pytest import import pytest L23–23
+ subprocess import import subprocess L17–17
+ sys import import sys L18–18
+ threading import import threading L19–19
+ time import import time L20–20
← Older Oldest on dev
All commits
Newer → Latest on dev

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:32da7c385d3a8007ddb63910df45a9269826afe523406ae99796141cb2649bcb --body "your comment"