blib/lib/IO/EditPrompt.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 24 | 50.0 |
line | true | false | branch |
---|---|---|---|
15 | 0 | 5 | unless ref $opts eq ref {} |
16 | 0 | 5 | if defined $$opts{'tmpdir'} and not -d $$opts{'tmpdir'} |
47 | 7 | 6 | if $$self{'editor'} =~ /\bvim$/ |
53 | 1 | 6 | unless defined $prompt |
60 | 1 | 3 | $$self{'dir'} ? : |
63 | 0 | 4 | unless close $tmp |
70 | 0 | 5 | unless open my $fh, '<', $filename |
77 | 3 | 5 | if -s $filename eq length $prompt |
86 | 0 | 0 | unless $err |
87 | 0 | 0 | if ($? == -1) { } |
0 | 0 | elsif ($? & 127) { } | |
91 | 0 | 0 | $? & 128 ? : |