Branch Coverage

blib/lib/UI/Various/Box.pm
Criterion Covered Total %
branch 44 44 100.0


line true false branch
84 6 2 $_ ? :
98 3 5 unless (/^\d+$/u and $_ > 0)
118 3 4 unless (/^\d+$/u and $_ > 0)
199 2 104 unless exists $self->{'field'}
254 1 19 unless $self->isa("UI::Various::Box")
259 9 10 unless (defined $$self{"field"})
269 19 18 if (ref $_ eq '') { }
17 1 elsif ($_->isa('UI::Various::widget')) { }
271 1 18 unless ($number < 2)
277 2 16 unless (/^\d+$/u)
279 1 1 $number == 0 ? :
283 10 6 $number == 0 ? :
2 14 unless ($_ < ($number == 0 ? $self->rows : $self->columns))
285 1 1 $number == 0 ? :
289 9 5 if ($number++ == 0) { }
296 1 16 if ($number > 1 and defined $$self{"field"}[$row][$column])
307 4 6 unless (++$column < $self->columns)
310 1 3 unless ++$row < $self->rows
313 1 15 unless ($row < $self->rows)
320 14 1 if ($self->SUPER::add($_))
355 3 1 if (defined $self->SUPER::remove($child))
363 3 9 if (defined $$self{"field"}[$row][$column] and $child eq $$self{"field"}[$row][$column])