Branch Coverage

lib/Graph/Easy/Layout/Repair.pm
Criterion Covered Total %
branch 75 104 72.1


line true false branch
33 60 10 if defined $gf and defined $gt and $gf == $gt
61 281 10 unless $cell->isa('Graph::Easy::Node::Cell')
64 4 6 if ($$cell{'x'} > $$cell{'node'}{'x'})
75 8 2 if ($$cell{'y'} > $$cell{'node'}{'y'})
91 0 50 if exists $$self{'cells'}{"$x,$y"}
110 0 31 if $$self{'debug'}
117 0 348 unless $$a{'x'} <=> $$b{'x'}
119 120 121 unless $cell->isa('Graph::Easy::Edge::Cell')
131 0 121 if ($type == 7 || $type == 8 || $type == 9 and exists $$cells{"$x,$y"})
139 0 0 if ($right->isa('Graph::Easy::Edge::Cell'))
142 0 0 unless $right->isa('Graph::Easy::Edge::Cell')
148 0 0 if $edge != $$right{'edge'}
159 0 121 if ($type == 7 || $type == 8 || $type == 10 and exists $$cells{"$x,$y"})
165 0 0 unless ($left->isa('Graph::Easy::Node'))
168 0 0 unless $left->isa('Graph::Easy::Edge::Cell')
172 0 0 if $edge != $$left{'edge'}
185 0 121 if ($type == 7 || $type == 9 || $type == 10 and exists $$cells{"$x,$y"})
191 0 0 unless $bottom->isa('Graph::Easy::Edge::Cell')
198 0 0 if $edge != $$bottom{'edge'}
207 83 38 if (exists $$cells{"$x,$y"})
211 2 13 if $right->isa('Graph::Easy::Edge::Cell') and defined $$right{'edge'} and defined $$right{'type'} and $edge == $$right{'edge'} || $$right{'type'} == 0 || $$cell{'type'} == 0
228 67 54 if (exists $$cells{"$x,$y"})
232 2 7 if $below->isa('Graph::Easy::Edge::Cell') and $edge == $$below{'edge'} || $$below{'type'} == 0 || $$cell{'type'} == 0
252 27 2 if defined $group
256 27 2 if defined $group
266 717 42 if exists $$_{'cell_class'}
27 79 if (grep {$$_{'cell_class'} =~ /$match/ if exists $$_{'cell_class'};} ord_values($check))
289 31 42 if ($type & 3840) == 1024
296 6 67 if ($type & 3840) == 256
303 33 40 if ($type & 240) == 64
313 4 69 if ($type & 240) == 16
325 16 57 if ($type & 3840) == 2048
333 0 73 if ($type & 3840) == 512
341 15 58 if ($type & 240) == 128
349 1 72 if ($type & 240) == 32
369 6 42 if (not ref $below and ($$cell{'type'} & 240) == 128)
371 17 1 if exists $$_{'cell_class'}
2 4 if (grep {$$_{'cell_class'} =~ /g[tb]/ if exists $$_{'cell_class'};} ord_values($$rows{$y}))
392 0 3288 unless $$a{'x'} <=> $$b{'x'}
394 1058 185 unless $cell->isa('Graph::Easy::Edge::Cell')
397 64 121 unless ($$cell{'x'} & 1) == 0 and ($$cell{'y'} & 1) == 0
401 48 73 unless $group
402 73 48 if $group
413 0 31 if $$self{'debug'}
417 0 31 if $self->groups == 0
456 94 209 unless $group
472 928 744 unless exists $$cells{"$x,$y"}
484 303 928 unless $cell->isa('Graph::Easy::Group::Cell')
494 64 864 if (exists $$cells{"$x,$y2"} and not exists $$cells{"$x,$y"})
497 12 52 if ($down->isa('Graph::Easy::Group::Cell') and $$down{'group'} == $group)
505 0 928 if (exists $$cells{"$x2,$y"} and not exists $$cells{"$x,$y"})
508 0 0 if ($right->isa('Graph::Easy::Group::Cell') and $$right{'group'} == $group)