Branch Coverage

lib/Graph/Easy/Layout/Grid.pm
Criterion Covered Total %
branch 37 42 88.1


line true false branch
30 54 283 if $need < 1
33 155 128 if (@$sizes == 1)
35 12 143 if $sizes->[0] < $need
50 181 541 if $s == 0
51 226 315 if ($s < $sm)
59 128 93 if $sum >= $need
110 4127 0 unless $cell->can($method)
118 3962 165 if (($cell->{'cx'} || 1) + ($cell->{'cy'} || 1) == 2)
121 3264 698 if $h >= ($rows->{$y} || 0)
122 2775 1187 if $w >= ($cols->{$x} || 0)
128 1078 3049 if $x > $mx
129 874 3253 if $y > $my
145 165 3962 if (($cell->{'cx'} || 1) + ($cell->{'cy'} || 1) > 2)
191 0 251 if $self->{'debug'}
211 0 251 if $self->{'debug'}
217 165 3962 if ($v->{'cx'} || 1) + ($v->{'cy'} || 1) != 2
243 786 3176 if $m > $max_y
245 924 3038 if $m > $max_x
251 3962 165 unless defined $v->{'x'} and ($v->{'cx'} || 1) + ($v->{'cy'} || 1) > 2
273 0 165 if $m > $max_y
275 0 165 if $m > $max_x