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
+
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_no_color_env_prevents_ansi_in_subprocess
method
method test_no_color_env_prevents_ansi_in_subprocess L129–137
+
test_term_dumb_prevents_ansi_in_subprocess
method
method test_term_dumb_prevents_ansi_in_subprocess L139–147
+
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_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_xterm_not_dumb_does_not_inhibit
method
method test_term_xterm_not_dumb_does_not_inhibit L103–110
+
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
+
test_no_color_empty_string_returns_false
method
method test_no_color_empty_string_returns_false L37–41
+
test_tty_true_no_inhibitors_returns_true
method
method test_tty_true_no_inhibitors_returns_true L50–57
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:32da7c385d3a8007ddb63910df45a9269826afe523406ae99796141cb2649bcb --body "your comment"
No comments yet. Be the first to start the discussion.