Condition Coverage

blib/lib/Term/Shell.pm
Criterion Covered Total %
condition 24 135 17.7


and 3 conditions

line !l l&&!r l&&r condition
87 0 0 0 @c and $o->{'API'}{'match_uniq'}
183 0 0 0 $pager and $pager ne 'internal'
414 0 3 0 $TERM and $o->{'API'}{'readline'} eq 'Term::ReadLine::Gnu'
420 3 0 0 $^O eq 'MSWin32' and eval { do { require Win32::Console } }
435 0 0 0 @x == 2 and $x[0]
491 0 0 0 $^O eq 'MSWin32' and eval { do { require Win32::Console } }
549 0 0 0 !defined($line) || $line =~ /^\s*$/u and defined $default
564 0 0 0 $term and $term->ReadLine eq 'Term::ReadLine::Gnu'
0 0 0 $term and $term->ReadLine eq 'Term::ReadLine::Perl'
609 2 1 0 $len < length $_ and $len = length $_
618 0 0 3 $vals[$i] =~ /\s/u && !($vals[$i] =~ /^\d/u)
663 0 0 0 $i <= length $raw and ($c = substr($raw, $i, 1)) ne $quote
706 0 0 0 $c =~ /\S/u and @args == 1
764 2 0 0 $add_cmd_name and not $preserve_args
999 0 0 0 @words == 2 and $start == length $line
1018 0 0 0 @c and $o->{'API'}{'match_uniq'}

or 2 conditions

line l !l condition
20 3 0 eval { do { local $SIG{'__WARN__'} = sub { } ; 'Term::ReadLine'->new('shell') } } || undef
44 0 3 $ENV{'PAGER'} || 'internal'
3 0 eval { do { $o->{'term'}->ReadLine } } || 'none'
587 2 0 shift() || ': '
588 2 0 shift() || 0
589 0 2 shift() || ''
590 0 2 shift() || 0
591 0 2 shift() || 0
697 0 0 shift() || $o->line || (return ())
776 0 0 shift() || []
811 3 0 shift() || []
812 3 0 shift() || 'run'

or 3 conditions

line l !l&&r !l&&!r condition
20 0 3 0 ref $cls || $cls
125 0 0 0 $o->{'API'}{'check_idle'} == 0 or not defined $o->{'term'}->IN
176 0 0 1 shift() || $o->termsize->{'rows'}
183 0 1 0 $lines < $maxlines or $maxlines == 0
1 0 0 $lines < $maxlines or $maxlines == 0 or $pager eq 'none'
259 0 0 0 $ans =~ /q/iu or not $o->have_readkey
425 0 0 0 $o->{'win32_stdout'} ||= 'Win32::Console'->new(STD_OUTPUT_HANDLE())
458 0 0 0 $ENV{'LINES'} or $ENV{'ROWS'}
0 0 0 $ENV{'LINES'} or $ENV{'ROWS'} or $ENV{'COLUMNS'}
460 0 0 0 $ENV{'LINES'} || $ENV{'ROWS'} || $rows
461 0 0 0 $ENV{'COLUMNS'} || $cols
504 0 0 0 $o->{'win32_stdin'} ||= 'Win32::Console'->new(STD_INPUT_HANDLE())
549 0 0 0 !defined($line) || $line =~ /^\s*$/u
608 0 0 2 shift() || $o->termsize->{'cols'}
689 0 0 0 shift() || $o->line
708 0 0 0 $o->{'line_args'} ||= substr($args, $i)
914 0 0 0 $o->{'handlers'}{$alias}{$type} || "${type}_$alias"
921 2 3 0 shift() || $o->{'API'}{'class'}
950 0 0 0 $start == 0 or substr($line, 0, $start) =~ /^\s*$/u
999 0 0 0 @words > 2 or @words == 2 and $start == length $line
1090 0 2 0 ref $_[0] || $_[0]