Branch Coverage

blib/lib/Grid/Layout.pm
Criterion Covered Total %
branch 36 60 60.0


line true false branch
201 0 11 if wantarray
224 0 12 if wantarray
248 26 18 if wantarray
317 10 2 if ($_[0]->isa('Grid::Layout::Track')) { }
2 0 elsif ($_[0]->isa('Grid::Layout::Line')) { }
324 0 10 unless $track_v_from->isa('Grid::Layout::Track')
325 0 10 unless $track_v_to->isa('Grid::Layout::Track')
326 0 10 unless $track_h_from->isa('Grid::Layout::Track')
327 0 10 unless $track_h_to->isa('Grid::Layout::Track')
329 0 10 unless $track_v_from->{'V_or_H'} eq 'V'
330 0 10 unless $track_v_to->{'V_or_H'} eq 'V'
331 0 10 unless $track_h_from->{'V_or_H'} eq 'H'
332 0 10 unless $track_h_to->{'V_or_H'} eq 'H'
336 1 38 if ($self->cell($x, $y)->{'area'})
368 0 2 unless $line_v_from->isa('Grid::Layout::Line')
369 0 2 unless $line_v_to->isa('Grid::Layout::Line')
370 0 2 unless $line_h_from->isa('Grid::Layout::Line')
371 0 2 unless $line_h_to->isa('Grid::Layout::Line')
459 16 243 unless ($x =~ /^\d+$/)
460 16 0 if ($x->isa('Grid::Layout::Track')) { }
461 0 16 unless $x->{'V_or_H'} eq 'V'
468 16 243 unless ($y =~ /^\d+$/)
469 16 0 if ($y->isa('Grid::Layout::Track')) { }
470 0 16 unless $y->{'V_or_H'} eq 'H'
545 0 51 unless $V_or_H eq 'V' or $V_or_H eq 'H'
546 0 51 unless $position =~ /^\d+$/
566 0 20 unless $V_or_H eq 'V' or $V_or_H eq 'H'
567 0 20 unless $position =~ /^\d+$/
586 6 24 if $V_or_H eq 'V'
587 24 0 if $V_or_H eq 'H'