Branch Coverage

blib/lib/Term/ReadLine/Zoid/Base.pm
Criterion Covered Total %
branch 25 98 25.5


line true false branch
98 6 0 exists $_[0]{'config'}{'bell'} ? :
104 0 0 unless @{$$self{'lines'};}
106 0 0 if $$self{'config'}{'autoenv'}
117 0 0 if exists $_[0]{'config'}{'beat'}
119 0 125 if $_[1]
121 125 0 if scalar @_key_buffer
131 0 0 if (exists $chr_map{$chr} and $$self{'config'}{'low_latency'} || ($n_chr = ReadKey(0.05, $$self{'IN'})))
140 0 0 unless (exists $chr_names{$chr})
153 98 21 unless length $key
156 16 103 if (exists $chr_names{$key}) { }
103 0 elsif (length $key < 2) { }
159 0 94 $ord == 127 ? :
9 94 $ord < 32 ? :
167 25 270 if (exists $$map{$key}) { }
176 94 elsif (exists $$map{'_isa'}) { }
94 0 elsif (exists $$map{'_default'}) { }
177 3 116 ref $sub ? :
188 0 0 if ($$self{'_SIGWINCH'})
190 0 0 if $$self{'config'}{'autoenv'}
207 0 0 if ($buffer > $higth) { }
211 0 0 if ($offset < 0) { }
0 0 elsif ($offset > $higth) { }
219 0 0 if ($buffer > $$self{'_buffer'})
241 0 26 if (exists $chr_names{$_[1]}) { }
26 0 elsif (length $_[1] < 2) { }
244 0 26 $ord == 127 ? :
0 26 $ord < 32 ? :
256 0 0 if (exists $$map{$key}) { }
0 0 elsif (exists $$map{'_isa'}) { }
267 0 44 @_ > 1 ? :
273 0 3 @_ > 1 ? :
291 0 0 if $max and $max =~ /^\d+$/ and $cnt > $max
293 0 0 $cnt > 1 ? :
295 0 0 @items < $$self{'_buffer'} ? :
296 0 0 if (@items > $$self{'term_size'}[1]) { }
297 0 0 if $max and $max eq 'pager'
314 0 0 $answ =~ /y/i ? :
324 0 0 if $width < 2 * $len
325 0 0 if $width > @items * $len
329 0 0 unless @items % ($cols + 1)
345 1 0 if ($chr =~ /^\^(.)$/)
370 0 0 unless -t $$self{'OUT'} and -t $$self{'IN'}
380 0 0 if ($r =~ /^\e\[\d+;(\d+)\D$/) { }
381 0 0 if $1 > 1
401 0 0 unless $ENV{'TERM'}
402 0 0 $ENV{'TERM'} eq 'sun-cmd' ? :
0 0 $ENV{'TERM'} eq 'iris-ansi' ? :
0 0 $ENV{'TERM'} =~ /^((ai)?xterm.*|dtterm|screen)$/ ? :
406 0 0 if $string