blib/lib/IO/EditPrompt.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 11 | 13 | 84.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
16 | 8 | 2 | 1 | defined $$opts{'tmpdir'} and not -d $$opts{'tmpdir'} |
33 | 1 | 1 | 0 | 0 == length $output and IO::Prompter::prompt('Content is empty, retry?', '-y') |
line | l | !l | condition |
---|---|---|---|
14 | 8 | 5 | $opts ||= {} |
44 | 3 | 10 | $ENV{'EDITOR'} || $def_editor || 'vim' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
44 | 5 | 13 | 0 | $$self{'editor'} ||= $ENV{'EDITOR'} || $def_editor || 'vim' |