Branch Coverage

lib/Graph/Easy/Edge.pm
Criterion Covered Total %
branch 76 110 69.0


line true false branch
31 0 2040 unless ($k =~ /^(label|name|style)\z/)
36 1012 1028 if $k eq 'name'
51 36 569 if (@_ > 0)
54 33 3 $_[0] ? :
57 33 3 if $old != $self->{'bidirectional'} and ref $self->{'graph'}
67 30 623 if (@_ > 0)
70 28 2 $_[0] ? :
73 27 3 if $old != $self->{'undirected'} and ref $self->{'graph'}
85 100 1682 if $s_port ne ''
89 27 1655 if $e_port ne ''
101 0 0 unless defined $s and $s =~ /,/
103 0 0 if wantarray
116 0 0 unless defined $s and $s =~ /,/
118 0 0 if wantarray
128 2061 751 unless $self->{'att'}{'style'}
136 451 88 unless $self->{'att'}{'label'}
147 1 5 unless defined $self->{'cells'}
167 0 0 if $self->{'debug'}
190 0 0 unless defined $src->{'x'} and defined $dst->{'x'}
207 0 0 if defined $s_p
211 0 0 if defined $e_p
216 0 0 unless @stop > 0 and @start > 0
231 0 0 if not defined $lowest or $dist < $lowest
246 6 2129 unless defined $self->{'cells'}
250 4 2131 if ref $before and $before->{'edge'} != $self
251 0 2135 if ref $after and $after->{'edge'} != $self
252 0 2135 if (not defined $after and ref $before)
257 81 2054 if (defined $after) { }
261 5 76 if (ref $after and not ref $before) { }
46 60 elsif (ref $after and ref $before) { }
267 5 4 if $cell == $after
281 45 133 if $c1 == $after and $c2 == $before or $c1 == $before and $c2 == $after
284 1 45 unless ($found)
292 1 2 if $cell == $after
297 0 46 unless $found
343 0 11 unless ref $node and $node->isa('Graph::Easy::Node')
347 0 11 if $self->{'from'} == $node
359 11 0 if ref $self->{'graph'}
373 0 11 unless ref $node and $node->isa('Graph::Easy::Node')
377 0 11 if $self->{'to'} == $node
389 11 0 if ref $self->{'graph'}
402 875 11 unless defined $flow
417 1306 27 unless defined $flow
420 1306 27 unless defined $flow
423 1286 47 unless defined $flow
425 0 1333 unless defined $flow
428 17 1316 if $flow =~ /^(0|90|180|270)\z/
443 0 4438 unless $which =~ /^(start|end)/
448 3926 512 unless defined $sp and $sp ne ''
455 311 201 if (defined $s)
457 208 103 if defined $port
462 201 0 if ref $self->{'from'}
467 184 17 if defined $port
479 2 0 if ref $self->{'graph'}
489 117 1477 if $self->{'w'} == 0 or $self->{'h'} == 0