blib/lib/Test/Script/Shebang.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 16 | 75.0 |
line | true | false | branch |
---|---|---|---|
31 | 1 | 6 | unless (-f $file) |
37 | 0 | 6 | unless open my $fh, '<', $file |
40 | 0 | 6 | unless close $fh |
42 | 2 | 4 | unless ($line =~ s/^\s*\#!\s*//) |
50 | 2 | 2 | unless ($cmd =~ /^perl(?:\z|[^a-z])/) |
65 | 1 | 1 | unless (-d $dir) |
71 | 0 | 1 | unless opendir my $dh, $dir |
73 | 0 | 1 | unless closedir $dh |