Branch Coverage

blib/lib/UI/Various/Listbox.pm
Criterion Covered Total %
branch 37 40 92.5


line true false branch
85 2 9 unless (/^\d+$/u and $_ > 0)
111 1 1 unless (ref $_ eq "CODE")
141 1 4 unless (/^[012]$/u)
170 1 5 unless (ref $_ eq "ARRAY")
176 1 4 if ($$self{"_initialised"})
183 3 1 if ($entries > 0) { }
236 1 9 unless (defined $$_{"height"})
271 1 4 unless $self->isa("UI::Various::Listbox")
278 0 4 if ($self->can("_add"))
309 1 17 unless $self->isa("UI::Various::Listbox")
312 1 16 unless ($index =~ /^\d+$/u)
318 15 1 if ($index <= $#{$$self{"texts"};})
323 1 2 0 < @{$$self{'texts'};} ? :
3 12 unless $self->first <= $#{$$self{"texts"};}
326 0 16 if ($self->can("_remove"))
355 1 9 unless ($$self{"selection"})
361 0 9 if ($self->can('_selected')) { }
370 14 60 if $$self{"_selected"}[$_] ne " "
374 3 3 0 < @selected ? :
3 6 $self->selection > 1 ? :