| blib/lib/IO/EditPrompt.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 14 | 24 | 58.3 |
| line | true | false | branch |
|---|---|---|---|
| 15 | 2 | 11 | unless ref $opts eq ref {} |
| 16 | 1 | 10 | if defined $$opts{'tmpdir'} and not -d $$opts{'tmpdir'} |
| 47 | 11 | 7 | 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 ? : |