Branch Coverage

blib/lib/String/Wildcard/Bash.pm
Criterion Covered Total %
branch 58 68 85.2


line true false branch
83 13 62 if $m{'bash_brace'} or $m{'bash_class'} or $m{'bash_joker'}
93 1 9 if $m{'bash_brace'}
103 0 0 if $m{'bash_joker'}
113 1 9 if $m{'bash_class'}
123 1 9 if $m{'bash_joker'} and $m{'bash_joker'} eq "?"
133 1 9 if $m{'bash_joker'} and $m{'bash_joker'} eq "*"
143 1 9 if $m{'bash_joker'} and $m{'bash_joker'} eq "**"
149 0 15 ref $_[0] eq 'HASH' ? :
156 1 40 if (defined($p = $m{'bash_brace_content'})) { }
7 33 elsif ($p = $m{'bash_joker'}) { }
2 31 elsif ($p = $m{'sql_joker'}) { }
1 30 elsif (defined($p = $m{'literal_brace_single_element'})) { }
1 29 elsif (defined($p = $m{'bash_class'})) { }
29 0 elsif (defined($p = $m{'literal'})) { }
159 4 3 if ($m{'bash_joker'} eq '*' or $m{'bash_joker'} eq '**') { }
179 15 13 ref $_[0] eq 'HASH' ? :
187 0 28 unless length $opt_ps == 1
188 25 3 $opt_ps eq '/' ? :
0 28 $opt_ps eq '-' ? :
202 2 58 if (defined($p = $m{'bash_brace_content'})) { }
32 26 elsif (defined($p = $m{'bash_joker'})) { }
1 25 elsif (defined($p = $m{'literal_brace_single_element'})) { }
1 24 elsif (defined($p = $m{'bash_class'})) { }
1 23 elsif (defined($p = $m{'sql_joker'})) { }
23 0 elsif (defined($p = $m{'literal'})) { }
204 0 2 if $m{'slashes_before_bash_brace'}
205 1 1 if ($opt_brace) { }
209 1 1 unless $2
223 1 31 if ($p eq '?') { }
27 4 elsif ($p eq '*' or $p eq '**' and not $opt_globstar) { }
4 0 elsif ($p eq '**') { }
226 18 9 $opt_dotglob || @res && !$after_pathsep ? :
229 2 2 if ($opt_dotglob) { }
0 2 elsif (@res and not $after_pathsep) { }