Condition Coverage

lib/Graph/Easy/As_graphviz.pm
Criterion Covered Total %
condition 84 113 74.3


and 3 conditions

line !l l&&!r l&&r condition
134 153 42 57 not ref $object and $object eq 'graph'
247 0 208 0 ref $self and defined $angle
262 0 0 4 ref $self and defined $side
347 14 2 203 ref $node and $style ne 'none'
358 23 1 195 $style =~ /^(|solid)\z/ and $shape ne 'rounded'
363 23 0 1 $shape eq 'rounded' and $style ne 'none'
505 139 0 107 not $att =~ /\n.*\n/ and length $att < 40
632 0 2 0 defined $side and @port > 0
677 0 2 0 defined $side and @port > 0
869 29 51 2 defined $$out{'label'} and not defined $$out{'labelloc'}
932 98 98 12 @out == 0 and (scalar $n->predecessors || 0) == 0
1006 171 0 1195 defined $b_attr and defined $c_attr
171 1193 2 defined $b_attr and defined $c_attr and $b_attr ne $c_attr
1016 95 0 3 defined $$a{$name} and $$a{$name} ne 'inherit'
1023 98 0 208 not $self->isa('Graph::Easy::Edge') and exists $$a{'label'}
98 37 171 not $self->isa('Graph::Easy::Edge') and exists $$a{'label'} and $$a{'label'} eq $$self{'name'}
1028 0 300 6 not $$self{'origin'} and $$self{'children'}
300 6 0 not $$self{'origin'} and $$self{'children'} and keys %{$$self{'children'};} > 0
1057 207 1 0 $style =~ /^double/ and $w > 0
1063 98 205 3 $class =~ /node/ and $shape eq 'plaintext'
1090 302 2 2 $root ne '' and $root eq $$self{'name'}
1099 488 42 0 $atr eq 'label' and $v =~ /^<

or 2 conditions

line l !l condition
323 208 0 $node->attribute('shape') || ''
391 3 95 $self->label || ''
464 208 0 $node->attribute('shape') || ''
821 0 82 $$self{'gid'} || '0'
900 12 2 $self->_as_graphviz_group($group) || ''
932 98 12 scalar $n->predecessors || 0
1062 51 255 $$a{'shape'} || 'rect'

or 3 conditions

line l !l&&r !l&&!r condition
140 199 53 0 $$color_remap{$name} || $name
606 0 0 98 $$e{'from'}->isa('Graph::Easy::Group') or $$e{'to'}->isa('Graph::Easy::Group')
840 1 3 78 $flow == 270 or $flow == 0
868 49 1 32 $flow == 90 or $flow == 270
874 1 3 78 $flow == 270 or $flow == 0
935 12 0 0 exists $$n{'_p'} or $$n{'origin'}
954 0 0 98 $$e{'from'}->isa('Graph::Easy::Group') or $$e{'to'}->isa('Graph::Easy::Group')
992 257 49 0 $$remap{'always'}{$class} || $$remap{'always'}{$base_class}
998 1236 306 98 ref $$remap{$base_class}{$name} or ref $$remap{'all'}{$name}
1106 428 0 102 not $v =~ /^[a-z0-9A-Z]+\z/ or $atr eq 'URL'
1195 17 78 452 not $name =~ /^([a-zA-Z_]+|\d+)\z/ or $name =~ /^(subgraph|graph|node|edge|strict)\z/i