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 3 unless my $obj = "File::GlobMapper"->new($inputGlob, $outputGlob, @_)
91 25 33 unless $self->_parseInputGlob
94 0 33 unless $self->_parseOutputGlob
99 0 33 if (GLOB_ERROR())
109 0 33 if ($missing)
118 1 32 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 122 10 if defined $mapping{$2}
219 112 20 if $wildCount{$2}
221 3 129 if ($2 eq '(') { }
18 111 elsif ($2 eq ')') { }
2 109 elsif ($2 eq '[') { }
1 108 elsif ($2 eq ']') { }
1 107 elsif ($2 eq '}') { }
8 99 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 33 if $depth
293 33 0 if ($self->{'GlobFlags'} & 2048)
306 0 0 if ($1) { }
313 0 34 if $1 > $maxwild
349 1 79 if $inFiles{$inFile}++
356 79 0 if (@matches = $inFile =~ /$self->{'InputPattern'}/)
378 1 78 if (defined $outInMapping{$outFile})