Condition Coverage

/usr/local/bin/greple
Criterion Covered Total %
condition 34 152 22.3


and 2 conditions

line l !l condition
185 0 1275 /^(\w+)/u and $optargs{$1} = $b

and 3 conditions

line !l l&&!r l&&r condition
193 0 0 0 ref $var eq "HASH" and @_ == 1
428 0 17 0 @ARGV and $ARGV[0] eq "--norc"
17 0 0 @ARGV and $ARGV[0] eq "--norc" and shift @ARGV
707 0 0 0 @opt_chdir == 1 and @argv_files == 1
0 0 0 @opt_chdir == 1 and @argv_files == 1 and @opt_glob == 0
717 17 0 0 @ARGV > 1 || $opt_readlist and not $opt_h
965 0 0 0 usage() and exit
1043 17 0 0 $opt_d{'n'} and $opt_d{'f'}
1085 17 0 0 $opt_uniqcolor and $opt_d{'c'}
1191 17 17 0 @ARGV == 0 and @opt_chdir
34 0 0 @ARGV == 0 and @opt_chdir and @argv_files || @opt_glob
1200 17 0 0 $opt_readlist && read_stdin()
1339 17 0 0 !$opt_all && $blockend ne '' && ($opt_blockend || $opt_p || $opt_A || $opt_B || @opt_block)
1382 17 0 0 $opt_n and $opt_linestyle eq "separate"
1386 17 0 0 $opt_b and $opt_blockstyle eq "separate"
1423 0 0 0 $opt_n and $opt_linestyle eq "line"
1457 17 0 0 $opt_b and $opt_blockstyle eq "line"
1467 0 17 0 $is_top and $_top ne ""
1469 0 17 0 $opt_newline and not $block =~ /\n\z/u

or 2 conditions

line l !l condition
470 0 0 $offset || 0
472 0 0 $offset || 0
513 0 0 $ENV{'PAGER'} || 'less'
560 0 0 $opt_exit //= 0
626 17 0 $must // 0
772 0 0 $+{'mk'} // ""
922 0 0 /^&\w+/u or next
1172 0 0 $bucket->help($name) // ""
1354 0 17 $block_number //= 0

or 3 conditions

line l !l&&r !l&&!r condition
428 0 0 17 @ARGV and $ARGV[0] eq "--norc" and shift @ARGV or $ENV{'GREPLE_NORC'}
484 0 17 0 $opt_ocode || $default_ocode
495 0 0 17 $opt_man or $opt_show
0 0 17 $opt_man or $opt_show or $opt_path
580 0 0 17 $opt_filter or grep {not $_->[0] =~ /^(not|may)/u;} @opt_pattern
581 17 0 0 shift @ARGV // &usage
675 0 0 0 $max <= 0 or $_[0] <= $max
700 0 0 17 $opt_H || $opt_l
707 0 0 0 $opt_h or @opt_chdir == 1 and @argv_files == 1 and @opt_glob == 0
716 17 0 0 @ARGV or @argv_files
17 0 0 @ARGV or @argv_files or @opt_glob
0 0 0 @ARGV or @argv_files or @opt_glob or $opt_readlist
717 0 0 17 @ARGV > 1 || $opt_readlist
786 0 0 17 $opt_color eq 'always' || $opt_color eq 'auto' && (!$opt_o && -t STDOUT)
795 0 0 0 $_esc{$1} // $1
843 0 0 17 $color_index{'A'} or $color_index{'D'}
884 0 0 0 $opt_A ||= $opt_C
885 0 0 0 $opt_B ||= $opt_C
950 0 0 0 $pat->regex // $pat->string
1115 0 0 17 $opt_exit // $stat{'match_effective'} == 0
1175 0 0 0 $help || join(' ', shellquote(@option))
1191 0 0 0 @argv_files || @opt_glob
1200 17 0 17 defined($file = shift @ARGV) or defined($file = $opt_readlist && read_stdin())
1207 0 0 0 open STDIN, "-|" or exec "w3m -dump $file"
1406 193 0 0 do { if (ref $callback eq "CODE") { &$callback($start, $end, $pi, $b); } elsif (callable($callback)) { $callback->call(&FILELABEL, $file, "start", $start, "end", $end, "index", $pi, "match", $b); } else { die; } } // $b