Branch Coverage

lib/Graph/Easy/Layout/Chain.pm
Criterion Covered Total %
branch 66 98 67.3


line true false branch
34 0 1588 unless ($k =~ /^(start|graph)\z/)
93 8 3 unless defined $node
128 0 605 if $$self{'_done'}
138 204 401 if (exists $$pre{'_todo'})
142 103 101 if ($edge and $$edge{'to'} == $pre and $edge->attribute('flow') || $edge->has_ports) { }
152 0 605 if $$g{'debug'}
153 0 605 if $$g{'debug'}
157 516 69 if (exists $$n{'_todo'})
172 0 605 if $$g{'debug'}
173 0 605 if $$g{'debug'}
184 648 602 if $$e{'to'} != $n
186 20 582 unless exists $$e{'_todo'}
189 0 582 if $$e{'to'}->isa('Graph::Easy::Group') or $$e{'from'}->isa('Graph::Easy::Group')
201 0 605 if $$g{'debug'}
202 0 605 if $$g{'debug'}
214 0 1190 if $$g{'debug'}
221 1052 889 if $$e{'to'} == $n
223 6 883 unless ref $$e{'to'}{'_chain'}
224 0 883 unless ref $$e{'from'}{'_chain'}
226 68 815 if $e->has_ports
229 0 815 if $$e{'to'}->isa('Graph::Easy::Group') or $$e{'from'}->isa('Graph::Easy::Group')
232 0 815 if $$g{'debug'}
235 228 587 if $$e{'to'}{'_chain'} != $self
238 515 72 unless exists $$e{'_todo'}
247 15 57 unless (defined $curr)
258 0 15 unless defined $curr
283 1426 515 unless exists $$e{'_todo'}
289 484 31 if $$e{'from'} != $n or $$e{'to'} != $n
297 0 605 if $$g{'debug'}
298 0 605 if $$g{'debug'}
313 0 1941 if $to->isa('Graph::Easy::Group')
317 6 1935 unless exists $$to{'_chain'} and ref($$to{'_chain'}) =~ /Chain/
319 1770 165 if $$chain{'_done'}
326 165 0 unless $$chain{'_done'}
329 17 148 unless exists $$e{'_todo'}
347 0 0 unless defined $indent
350 0 0 if $$self{'len'} == 0
369 0 214 unless defined $other
371 0 214 if $$g{'debug'}
375 0 214 if $$g{'debug'} and ref $where
380 0 214 if $self == $other
383 0 213 unless ref $where and exists $$where{'_chain'} and $$where{'_chain'} == $other
385 1 213 unless defined $where
395 0 214 if $$g{'debug'}
396 0 214 if $$g{'debug'}
412 0 282 if (ref $n and defined $$n{'_chain'} and $$n{'_chain'} == $self)
432 165 49 if (defined $$other{'start'} and $where == $$other{'start'})
441 0 214 if $$g{'debug'}
442 0 214 if $$g{'debug'}