Branch Coverage

blib/lib/File/Find/Rex.pm
Criterion Covered Total %
branch 21 62 33.8


line true false branch
24 0 1 if (defined $options and ref $options ne 'HASH')
27 0 1 if (defined $callback and ref $callback ne 'CODE')
41 0 0 if (defined $key)
51 1 0 $self->{'_options'}{'ignore_dirs'} > 0 ? :
1 0 defined $self->{'_options'}{'ignore_dirs'} ? :
61 0 0 $self->{'_options'}{'ignore_hidden'} > 0 ? :
0 5 defined $self->{'_options'}{'ignore_hidden'} ? :
71 0 0 $self->{'_options'}{'recursive'} > 0 ? :
0 0 defined $self->{'_options'}{'recursive'} ? :
80 0 2 if (defined $val)
84 0 0 unless $val =~ /^[\d]*$/gsx
92 0 2 if (defined $val)
96 0 0 unless $val =~ /^[\d]*$/gsx
103 0 1 unless defined $source
104 0 1 if (defined $regexp and ref $regexp ne 'Regexp')
113 1 0 if (-e $source) { }
120 1 0 if (-d $source) { }
149 0 6 defined $dummy ? :
153 5 1 unless (-d $file and $self->is_ignore_dirs)
159 0 5 if ($self->is_ignore_hidden)
164 0 0 if ($^O eq 'MSWin32') { }
172 0 0 unless $is_visible
176 5 0 if (defined $regexp and not -d $file)
177 3 2 unless $filename =~ /$regexp/
183 0 2 if (defined $oldest or defined $newest)
187 0 0 unless $timestamp >= $oldest
0 0 if (defined $oldest)
188 0 0 unless $timestamp <= $newest
0 0 if (defined $newest)
192 0 2 if (defined $self->{'_callback'}) { }
200 0 1 if (-d $file and uc $file ne uc $source and not $self->is_recursive)