Branch Coverage

blib/lib/File/GlobMapper.pm
Criterion Covered Total %
branch 62 76 81.5


line true false branch
11 0 130 if ($] < 5.006) { }
59 0 4 unless my $obj = "File::GlobMapper"->new($inputGlob, $outputGlob, @_)
91 25 34 unless $self->_parseInputGlob
94 0 34 unless $self->_parseOutputGlob
99 0 34 if (GLOB_ERROR())
109 0 34 if ($missing)
118 1 33 unless $self->_getFiles
151 5 4 if defined $mapping{$2}
153 4 5 if $wildCount{$2}
155 3 6 if ($2 eq ',') { }
1 5 elsif ($2 eq '(') { }
1 4 elsif ($2 eq ')') { }
1 3 elsif ($2 eq '[') { }
1 2 elsif ($2 eq ']') { }
0 2 elsif ($2 eq '{' or $2 eq '}') { }
157 0 3 if $depth
168 1 0 unless $depth
177 1 0 unless $string =~ s/(.*?\])//
193 1 3 if $depth
218 125 10 if defined $mapping{$2}
219 115 20 if $wildCount{$2}
221 3 132 if ($2 eq '(') { }
18 114 elsif ($2 eq ')') { }
2 112 elsif ($2 eq '[') { }
1 111 elsif ($2 eq ']') { }
1 110 elsif ($2 eq '}') { }
8 102 elsif ($2 eq '{') { }
227 16 2 unless $depth
236 1 1 unless $string =~ s/(.*?\])//
254 1 7 unless ($string =~ s/(.*?)$noPreBS\}//)
264 4 3 unless defined $alt
271 1 34 if $depth
293 34 0 if ($self->{'GlobFlags'} & 2048)
306 0 0 if ($1) { }
313 0 35 if $1 > $maxwild
348 1 80 if $inFiles{$inFile}++
353 80 0 if (@matches = $inFile =~ /$self->{'InputPattern'}/)
375 1 79 if (defined $outInMapping{$outFile})