Branch Coverage

blib/lib/TAP/Parser/SourceHandler/Perl.pm
Criterion Covered Total %
branch 39 46 84.7


line true false branch
77 86 224 unless $meta->{'is_file'}
80 220 4 if (my $shebang = $file->{'shebang'})
81 59 161 if $shebang =~ /^#!.*\bperl/
90 1 3 if $file->{'lc_ext'} eq '.t'
91 1 2 if $file->{'lc_ext'} eq '.pl'
93 1 1 if $file->{'dir'} =~ /^t\b/
142 0 210 unless $meta->{'is_file'}
158 248 25 unless $_ eq '-T'
159 27 334 $has_taint ? :
168 15 195 if ($class->_has_taint_switch($switches))
169 15 0 defined $ENV{'PERL5LIB'} ? :
174 1 14 defined $ENV{'PERL5OPT'} ? :
199 527 89 if (not /$path_re/ and / ^ ['"]? -I ['"]? (.*?) ['"]? $ /x) { }
214 139 71 if (@{$libs;} and not $class->_has_taint_switch($switches))
226 205 0 if (defined $previous) { }
240 0 210 unless my(@command) = $class->_get_command_for_switches($source, $switches)
263 2 208 unless $source->test_args
292 195 15 unless defined $shebang and $shebang =~ /^#!.*\bperl.*\s-\w*([Tt]+)/
300 23 187 unless $source->switches
302 0 210 unless defined $shebang
305 15 195 if defined $taint
326 0 210 if defined $ENV{'HARNESS_PERL'}
327 0 210 if &IS_WIN32() and $^X =~ m([^\w\./\\])