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")
144 1 4 unless (/^[012]$/u)
173 1 5 unless (ref $_ eq "ARRAY")
179 1 4 if ($$self{"_initialised"})
186 3 1 if ($entries > 0) { }
239 1 9 unless (defined $$_{"height"})
274 1 4 unless $self->isa("UI::Various::Listbox")
281 0 4 if ($self->can("_add"))
312 1 17 unless $self->isa("UI::Various::Listbox")
315 1 16 unless ($index =~ /^\d+$/u)
321 15 1 if ($index <= $#{$$self{"texts"};})
326 1 2 0 < @{$$self{'texts'};} ? :
3 12 unless $self->first <= $#{$$self{"texts"};}
329 0 16 if ($self->can("_remove"))
358 1 9 unless ($$self{"selection"})
364 0 9 if ($self->can('_selected')) { }
373 14 60 if $$self{"_selected"}[$_] ne " "
377 3 3 0 < @selected ? :
3 6 $self->selection > 1 ? :