blib/lib/Term/ReadLine/Zoid/ViCommand.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 26 | 80.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
119 | 7 | 41 | 33 | $$self{'vi_command'} and not grep({$_ eq $cmd;} @vi_motions, '.') |
251 | 19 | 0 | 2 | lc $key eq 'e' and $$self{'pos'}[0] < length $$self{'lines'}[$$self{'pos'}[1]] |
633 | 1 | 1 | 1 | $cnt == 1 && !($$self{'vi_command'} =~ /^1/) |
line | l | !l | condition |
---|---|---|---|
68 | 29 | 2 | $$self{'vi_history'} ||= [] |
107 | 34 | 47 | $1 || 1 |
79 | 2 | $2 || '0' | |
370 | 2 | 0 | $1 || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
69 | 0 | 24 | 7 | $_[1] or $$self{'pos'}[0] == 0 |
108 | 50 | 31 | 0 | $vi_subs{$cmd} || 'vi_' . uc($cmd) |
115 | 0 | 43 | 38 | lc $cmd eq 'u' or join("\n", @{$$s{'lines'};}) eq join("\n", @{$$self{'lines'};}) |