Branch Coverage

blib/lib/Test/Base/Filter.pm
Criterion Covered Total %
branch 33 62 53.2


line true false branch
12 9 10 unless defined $arguments
20 289 1 if @_ == 1
29 0 2 unless @_
30 1 1 if (ref $_[0] eq 'ARRAY')
46 0 0 unless @_
47 0 0 if (ref $_[0] eq 'ARRAY')
48 0 0 if (ref $_[0][0] eq 'ARRAY')
116 0 22 if $@
156 0 1 unless open my $execution, "$^X $tmpfile 2>&1 |"
161 0 1 unless unlink $tmpfile
169 1 2 if (ref $ref eq 'HASH')
174 1 1 if (ref $ref eq 'ARRAY')
199 4 4 unless defined $string
206 1 17 unless length $text
214 0 230 unless defined $text
229 0 0 unless open my $fh, $file
238 1 3 if ($text =~ /\n.*?\n/s) { }
239 0 1 unless defined $flags
247 0 4 if $@
256 0 0 unless $self->current_arguments =~ /^(\d+)(?:,(\d))?$/
259 0 0 unless defined $y
260 0 0 if $x > $y
272 0 4 if (defined $separator and $separator =~ s[^/(.*)/$][$1])
276 3 1 unless $separator
306 0 1 unless my $file = $self->current_arguments
308 1 0 if ($file =~ m[(.*)[\\/]])
310 1 0 unless (-e $dir)
312 0 1 unless File::Path::mkpath($dir)
316 0 1 unless open my $fh, ">$file"
331 0 1 unless open my $script, ">$filename"
334 0 1 unless close $script