Branch Coverage

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


line true false branch
11 0 84 if ($] < 5.006) { }
54 0 1 unless my $obj = "File::GlobMapper"->new($inputGlob, $outputGlob, @_)
86 25 31 unless $self->_parseInputGlob
89 0 31 unless $self->_parseOutputGlob
94 0 31 if (GLOB_ERROR())
104 0 31 if ($missing)
113 1 30 unless $self->_getFiles
146 5 4 if defined $mapping{$2}
148 4 5 if $wildCount{$2}
150 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 '}') { }
152 0 3 if $depth
163 1 0 unless $depth
172 1 0 unless $string =~ s/(.*?\])//
188 1 3 if $depth
213 114 10 if defined $mapping{$2}
214 104 20 if $wildCount{$2}
216 3 121 if ($2 eq '(') { }
18 103 elsif ($2 eq ')') { }
2 101 elsif ($2 eq '[') { }
1 100 elsif ($2 eq ']') { }
1 99 elsif ($2 eq '}') { }
8 91 elsif ($2 eq '{') { }
222 16 2 unless $depth
231 1 1 unless $string =~ s/(.*?\])//
249 1 7 unless ($string =~ s/(.*?)$noPreBS\}//)
259 4 3 unless defined $alt
266 1 31 if $depth
288 31 0 if ($self->{'GlobFlags'} & 2048)
301 0 0 $1 ? :
308 0 30 if $1 > $maxwild
335 1 73 if $inFiles{$inFile}++
339 73 0 if ($inFile =~ /$self->{'InputPattern'}/)
344 1 72 if (defined $outInMapping{$outFile})