Condition Coverage

lib/Term/ReadLine/Perl5/readline.pm
Criterion Covered Total %
condition 51 342 14.9


and 3 conditions

line !l l&&!r l&&r condition
190 14 0 0 $inDOS and not defined $TIOCGWINSZ
396 0 14 0 $ENV{'TERM'} and $ENV{'TERM'} eq 'emacs' || $ENV{'TERM'} eq 'dumb'
14 0 0 not -c $term_IN and $term_IN eq \*STDIN
552 539 3156 0 defined $KeyMap[$key] and $KeyMap[$key] ne 'F_PrefixMeta'
568 24 0 0 $^W and defined $KeyMap{'default'}
573 3041 746 0 defined $KeyMap[$key] and $KeyMap[$key] eq 'F_PrefixMeta'
3787 0 0 defined $KeyMap[$key] and $KeyMap[$key] eq 'F_PrefixMeta' and $func ne 'PrefixMeta'
698 92 0 3811 defined($key = shift @_) and defined($func = shift @_)
733 0 0 0 defined($key = shift @_) and defined($func = shift @_)
838 0 1 1 $have_getpwent and length $pattern > 1
906 0 0 0 $ENV{'TERM'} && $1 eq $ENV{'TERM'}
988 0 0 0 $Term::ReadLine::toloop and defined &Tk::DoOneEvent
1048 2 82 104 not &at_end_of_line and $count-- > 0
1064 3 32 36 $D > 0 and $count-- > 0
1084 0 10 15 not &at_end_of_line and $count-- > 0
1087 0 15 10 not &at_end_of_line and &WordBreak($D)
1107 2 1 6 $D > 0 and $count-- > 0
1109 0 6 4 $D > 0 and &WordBreak($D - 1)
1111 2 4 27 $D > 0 and not &WordBreak($D - 1)
1297 0 0 0 $line eq '' and $Vi_mode
1414 0 0 0 $D == length $line and $D >= 2
1670 0 0 0 defined $KeyMap[$ord] and $KeyMap[$ord] eq 'F_UniversalArgument'
0 0 0 $ord == 45 and not $sawDigit
0 0 0 $ord >= 48 and $ord <= 57
1740 0 0 0 $var_TcshCompleteMode and @tcsh_complete_selections > 0
1867 0 0 0 --$point and -1 == index($rl_completer_word_break_characters, substr($line, $point, 1))
1872 0 0 0 index($rl_completer_word_break_characters, substr($line, $point, 1)) != -1 and index($rl_special_prefixes, substr($line, $point, 1)) == -1
1891 0 0 0 @matches == 1 and not $rl_completion_suppress_append
1950 0 0 0 $count > 0 and $remainingEntries >= 0
2026 0 0 0 $ord >= $t->[0] and $ord < $t->[0] + length($t->[1])
2085 0 0 0 $inDOS and length $line == 0
2138 0 0 0 @lastcmd and $lastcmd[0] =~ /^\d$/
2182 0 0 0 not $D and $direction < 0
2254 0 0 0 not $D and $direction < 0
2272 0 0 0 not &at_end_of_line and $col < $n
2456 0 0 0 @chars and $chars[0] eq '^'
2457 0 0 0 @chars and $chars[-1] eq '$'
2665 0 0 0 $line eq '' and $Dot_buf->[0] eq 'i'
2850 0 0 0 defined $memorizedPos and $n > 0
2939 5 0 9 defined $num_cols and defined $num_rows
2940 0 0 9 defined $num_cols and $num_cols
2948 0 0 0 $@ and $^W
2964 0 0 0 not $@ and $Orig ne ',,,'
2996 0 0 0 not $Term::ReadLine::registered and $Term::ReadLine::toloop
0 0 0 not $Term::ReadLine::registered and $Term::ReadLine::toloop and defined &Tk::DoOneEvent
3034 0 0 0 $rl_OperateCount > 0 and !defined($_[1]) || $_[1] eq ''
3105 0 0 0 not $@ and $Orig ne ',,,'
3157 0 0 0 $rl_first_char and $cmd =~ /^F_(SelfInsert$|Yank)/
0 0 0 $rl_first_char and $cmd =~ /^F_(SelfInsert$|Yank)/ and length $line
0 0 0 $rl_first_char and $cmd =~ /^F_(SelfInsert$|Yank)/ and length $line and $rl_default_selected
3176 0 0 0 $Vi_mode and $line ne ''
0 0 0 $Vi_mode and $line ne '' and &at_end_of_line
0 0 0 $Vi_mode and $line ne '' and &at_end_of_line and $KeyMap{'name'} eq 'vicmd_keymap'
3252 0 0 0 defined $bsel and $bsel != $esel
3256 0 0 0 defined $bsel and $bsel != $esel
3347 0 0 0 length $c > 1 and $i < $D
3349 0 0 0 defined $bsel and length $c > 1
0 0 0 defined $bsel and length $c > 1 and $i < $bsel
3374 0 0 0 $D == length $prompt and length $prompt < $rl_screen_width - (0 != length $dline)
0 0 0 length($dline) - $si < $rl_screen_width - $rl_margin and $si
3379 0 0 0 $si > 0 and $si != length $prompt
0 0 0 $si > 0 and $si != length $prompt and not &OnSecondByte($si)
3382 0 0 0 $si > 0 and $si != length $prompt
0 0 0 $si > 0 and $si != length $prompt and not &OnSecondByte($si)
3386 0 0 0 $si > 0 and $si != length $prompt
0 0 0 $si > 0 and $si != length $prompt and not &OnSecondByte($si)
3421 0 0 0 defined $bsel and $bsel == 0
3445 0 0 0 $lastredisplay eq $dline and $lastpromptlen == length $prompt
3470 0 0 0 $thislen > $lastlen and $lastdelta == $lastlen
0 0 0 $thislen > $lastlen and $lastdelta == $lastlen and $delta == $thislen
0 0 0 $thislen > $lastlen and $lastdelta == $lastlen and $delta == $thislen and $lastpromptlen == length $prompt
0 0 0 $thislen > $lastlen and $lastdelta == $lastlen and $delta == $thislen and $lastpromptlen == length $prompt and substr($dline, 0, $lastlen - $lastpromptlen) eq $lastredisplay
3494 0 0 0 $lastlen and $lastlen > $thislen
3499 0 0 0 $back <= length $out and not defined $bsel
3622 0 0 0 $rl_first_char and length $line
0 0 0 $rl_first_char and length $line and $rl_default_selected
3627 0 0 0 $rl_delete_selection and defined pos $line
0 0 0 $rl_delete_selection and defined pos $line and $D != pos $line
3689 213 210 17 $_rl_japanese_mb and ord substr($line, $index, 1) >= 128
423 0 17 $_rl_japanese_mb and ord substr($line, $index, 1) >= 128 and ord substr($line, $index + 1, 1) >= 128
3929 0 0 0 $reverse and $I != -1
3938 0 0 0 not $reverse and $I != -1
4071 0 0 0 --$point and -1 == index($rl_completer_word_break_characters, substr($line, $point, 1))
4076 0 0 0 index($rl_completer_word_break_characters, substr($line, $point, 1)) != -1 and index($rl_special_prefixes, substr($line, $point, 1)) == -1
4092 0 0 0 @matches == 1 and not $rl_completion_suppress_append
4236 0 0 0 length $_ > $maxwidth && ($maxwidth = length $_)
4322 0 0 0 defined $fullline_ord and $ord == $fullline_ord

or 2 conditions

line l !l condition
3558 0 0 $KeyMap{'default'} || 'F_Ding'
3928 0 0 $KeyMap[ord $c] || 0
0 0 $KeyMap[ord $c] || 0

or 3 conditions

line l !l&&r !l&&!r condition
184 0 0 11 $^O eq 'os2' || defined $ENV{'OS2_SHELL'}
396 0 0 14 $ENV{'TERM'} eq 'emacs' || $ENV{'TERM'} eq 'dumb'
429 70 0 0 $autoload_broken or defined &$func
441 0 0 0 not @$keys or $c == 1
0 0 0 not @$keys or $c == 1 or not defined(my $in = &getc_with_pending)
870 0 0 0 -S _ or -p _
919 0 0 0 @level == 0 or $level[$#level] ne 'if'
1089 0 15 66 &at_end_of_line or &WordBreak($D)
1452 0 0 0 $p3 == $p2 or $p2 < $p1
2475 0 0 0 $chmap{$ch} || $ch
3034 0 0 0 !defined($_[1]) || $_[1] eq ''
3193 0 0 0 $dumb_term or $stdin_not_tty
3206 0 0 1 $dumb_term or $stdin_not_tty
3440 0 0 0 $force_redraw or defined $bsel
3559 0 0 0 not defined $cmd or $cmd eq ''
3649 0 3 33 not $_rl_japanese_mb or $_[0] == 0
3 0 33 not $_rl_japanese_mb or $_[0] == 0 or $_[0] == length $line
3742 0 0 0 $stdin_not_tty or $dumb_term
0 0 0 $stdin_not_tty or $dumb_term or not $initialized
3896 0 0 0 $i < 0 or $i > $#rl_History
3928 0 0 0 ord $c < 32 or ord $c > 126
3994 0 0 0 $i < 0 or $i > $#rl_History
4200 0 1 22 $prefix eq '' or $prefix eq substr($fields[0], 0, length $prefix)
4362 0 0 0 $n < 0 or $n > @rl_History
4387 0 0 0 $i < 0 or $i > $#rl_History