Branch Coverage

blib/lib/UI/Various/Listbox.pm
Criterion Covered Total %
branch 35 38 92.1


line true false branch
71 2 8 unless (/^\d+$/u and $_ > 0)
101 1 4 unless (/^[012]$/u)
130 1 5 unless (ref $_ eq "ARRAY")
136 1 4 if ($$self{"_initialised"})
143 3 1 if ($entries > 0) { }
209 1 8 unless (defined $$_{"height"})
244 1 4 unless $self->isa("UI::Various::Listbox")
251 0 4 if ($self->can("_add"))
282 1 17 unless $self->isa("UI::Various::Listbox")
285 1 16 unless ($index =~ /^\d+$/u)
291 15 1 if ($index <= $#{$$self{"texts"};})
296 1 2 0 < @{$$self{'texts'};} ? :
3 12 unless $self->first <= $#{$$self{"texts"};}
299 0 16 if ($self->can("_remove"))
328 1 9 unless ($$self{"selection"})
334 0 9 if ($self->can('_selected')) { }
343 14 60 if $$self{"_selected"}[$_] ne " "
347 3 3 0 < @selected ? :
3 6 $self->selection > 1 ? :