Condition Coverage

blib/lib/PERLANCAR/Module/List.pm
Criterion Covered Total %
condition 41 62 66.1


and 3 conditions

line !l l&&!r l&&r condition
54 0 0 12 $prefix =~ /\A(?:$root_notleaf_rx:: (?:$notroot_notleaf_rx::)*)?\z/x and not $prefix =~ /(?:\A|[^:]::)\.\.?::/
83 53 110 48 $list_modules and $entry =~ /$pm_rx/
163 0 0 $list_pod and $entry =~ /$pod_rx/
48 48 53 $entry ne '.' and $entry ne '..'
14 96 53 $list_prefixes || $recurse and ($entry ne '.' and $entry ne '..')
96 16 37 $list_prefixes || $recurse and ($entry ne '.' and $entry ne '..') and $entry =~ /$dir_rx/
64 0 37 $list_prefixes || $recurse and ($entry ne '.' and $entry ne '..') and $entry =~ /$dir_rx/ and -d join('/', $dir, $entry)
87 10 11 27 $re_wildcard and not $key =~ /$re_wildcard/
89 21 0 0 $all and $return_path
99 0 24 13 $all && $return_path || !exists $results{$newpfx} and $list_prefixes
103 52 0 0 $list_pod and $use_pod_dir
109 0 0 0 $re_wildcard and not $key =~ /$re_wildcard/
118 8 2 2 $list_prefixes and $re_wildcard

or 2 conditions

line l !l condition
142 0 8 $opts->{'brace'} // 1

or 3 conditions

line l !l&&r !l&&!r condition
63 8 4 0 $list_modules or $list_prefixes
12 0 0 $list_modules or $list_prefixes or $list_pod
83 48 0 163 $list_modules and $entry =~ /$pm_rx/ or $list_pod and $entry =~ /$pod_rx/
53 96 14 $list_prefixes || $recurse
89 0 19 2 $all and $return_path or not exists $results{$key}
99 0 37 0 $all && $return_path || !exists $results{$newpfx}
122 2 2 2 $k =~ /$re_wildcard/ or $k_nocolon =~ /$re_wildcard/