Condition Coverage

lib/MCP/Run/Compress.pm
Criterion Covered Total %
condition 42 92 45.6


and 3 conditions

line !l l&&!r l&&r condition
113 0 0 148 $parsed and $filter_spec
868 1 8 0 $matched_filter and $matched_filter->{'command_transform'}
8 0 0 $matched_filter and $matched_filter->{'command_transform'} and not $ENV{'MCP_RUN_COMPRESS_NO_CO_AUTHORED'}
947 0 0 0 $omit > 0 and $tail > 0
968 7 0 1 not length trim($out) and $matched_filter->{'on_empty'}
1009 0 0 0 $matched_filter and $matched_filter->{'command_transform'}
0 0 0 $matched_filter and $matched_filter->{'command_transform'} and not $ENV{'MCP_RUN_COMPRESS_NO_CO_AUTHORED'}
1078 0 0 0 $omit > 0 and $tail > 0
1097 0 0 0 not length trim($out) and $matched_filter->{'on_empty'}

or 2 conditions

line l !l condition
81 9 333 $parsed_command->{'flags'} // {}
82 9 0 $parsed_command->{'flags'}{$flag} // 1
84 342 0 $parsed_command->{'program'} // ""
243 99 $parsed_command->{'subcommand'} // ""
106 0 432 $args{'strip_ansi'} // 0
414 18 $args{'strip_lines_matching'} // []
0 432 $args{'keep_lines_matching'} // []
180 252 $args{'truncate_lines_at'} // 0
423 9 $args{'max_lines'} // 0
9 423 $args{'tail_lines'} // 0
9 423 $args{'head_lines'} // 0
9 423 $args{'on_empty'} // ""
0 432 $args{'replace'} // []
18 414 $args{'match_output'} // []
9 423 $args{'filter_stderr'} // 0
9 423 $args{'output_detect'} // undef
18 414 $args{'transform'} // undef
9 423 $args{'command_transform'} // undef
116 148 0 $filter_spec->{'program'} // ""
148 0 $parsed->{'program'} // ""
120 2 0 $filter_spec->{'subcommand'} // ""
2 0 $parsed->{'subcommand'} // ""
124 0 0 $filter_spec->{'flags'} // {}
251 0 0 $4 // 0
876 8 0 $stderr // ""
945 0 0 $matched_filter->{'tail_lines'} // 0
1007 0 0 $stderr // ""
1027 0 0 $matched_filter->{'match_output'} // []
1037 0 0 $matched_filter->{'strip_lines_matching'} // []
1052 0 0 $matched_filter->{'keep_lines_matching'} // []
1076 0 0 $matched_filter->{'tail_lines'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
812 0 0 0 $ENV{'CO_AUTHORED_BY'} || $ENV{'ANTHROPIC_MODEL'}