Condition Coverage

blib/lib/IO/EditPrompt.pm
Criterion Covered Total %
condition 10 13 76.9


and 3 conditions

line !l l&&!r l&&r condition
16 4 1 0 defined $$opts{'tmpdir'} and not -d $$opts{'tmpdir'}
33 1 1 0 0 == length $output and IO::Prompter::prompt('Content is empty, retry?', '-y')

or 2 conditions

line l !l condition
14 1 4 $opts ||= {}
44 3 6 $ENV{'EDITOR'} || $def_editor || 'vim'

or 3 conditions

line l !l&&r !l&&!r condition
44 4 9 0 $$self{'editor'} ||= $ENV{'EDITOR'} || $def_editor || 'vim'