Condition Coverage

lib/Graph/Easy.pm
Criterion Covered Total %
condition 120 203 59.1


and 2 conditions

line l !l condition
1212 4 1 $rounded++ and last

and 3 conditions

line !l l&&!r l&&r condition
69 107 802 3 @_ == 1 and not ref $_[0]
224 2406 0 1 $k eq 'undirected' and $$args{$k}
353 0 0 0 keys %{$$node{'edges'};} != 0 and not $node->has_predecessors
377 0 296 9 not $_[0] and $label =~ /\\[EGHNT]/
388 18 0 391 $link eq '' and $autolink ne ''
392 391 0 0 $autolink eq 'label' and defined $$self{'att'}{'label'}
393 391 0 0 $autolink eq 'label' and not defined $$self{'att'}{'label'}
398 314 10 85 $link ne '' and not $link =~ m[^([\w]{3,4}://|/)]
403 0 409 0 not $_[0] and $link =~ /\\[EGHNT]/
498 0 840 216 $f1 and $f1 eq 'rank'
499 0 826 230 $f1 and $f1 =~ /^(name|title|label)$/
501 610 230 216 $f2 and $f1 eq 'rank'
502 610 446 0 $f2 and $f2 eq 'rank'
503 610 231 215 $f2 and $f2 =~ /^(name|title|label)$/
506 0 840 216 $f1 and $f1 eq 'rank'
840 0 216 $f1 and $f1 eq 'rank' and $f2
840 1 215 $f1 and $f1 eq 'rank' and $f2 and $f2 =~ /^(name|title|label)$/
509 610 215 231 $f2 and $f2 eq 'id'
825 1 230 $f2 and $f2 eq 'id' and $f1 ne 'rank'
529 0 0 1 ref $x1 and ref $y1
549 0 0 534 ref $x and ref $y
568 0 0 0 ref $x and ref $y
0 0 0 ref $x and ref $y and $x != $y
572 0 0 0 $$e{'from'} == $x and $$e{'to'} == $y
791 0 116 22 defined $class_selector and not defined $att
987 103 4 16 $class eq 'group' and $groups == 0
991 87 20 0 $class eq 'graph' and $base eq ''
1017 368 0 74 $class eq 'graph' and $base ne ''
368 64 10 $class eq 'graph' and $base ne '' and $att =~ /^(color|font|fontsize|align|fill)\z/
1026 368 60 4 $att eq 'borderstyle' and $class eq 'group'
1028 408 20 4 $att eq 'borderwidth' and not $val =~ /(px|em|%)\z/
1050 64 0 368 $class ne 'graph' and $att
64 0 368 $class ne 'graph' and $att and $val
0 336 32 $class ne 'graph' and $att and $val and $val eq 'inherit'
1060 0 32 0 $base_class ne 'graph' and !defined($val) || $val eq 'inherit'
1068 32 0 400 defined $att and defined $val
1281 0 10 0 not $_[0] and $title =~ /\\[EGHNTL]/
1309 0 24 5 defined $caption and $caption ne ''
1435 3 97 0 @$row > 0 and not defined $$row[-1]
1468 0 0 0 $j < @$row and $$row[$j] eq $$row[$i]
1796 1157 0 0 ref $$edge{'graph'} and $$edge{'graph'} != $self
1802 0 0 1157 defined $x and defined $y
1818 1086 69 2 not ref $y and $y eq $xn
1825 184 2130 0 ref $$n{'graph'} and $$n{'graph'} != $self
1885 2075 45 23 ref $x and ref $$x{'graph'}
2120 23 0 ref $x and ref $$x{'graph'} and $$x{'graph'} != $self
1925 3 0 0 ref $x and ref $$x{'graph'}
3 0 0 ref $x and ref $$x{'graph'} and $$x{'graph'} != $self
2050 3 1 1 $$edge{'to'} == $B and $$edge{'from'} == $B
2230 0 24 11 $are_graph and not defined $$g{'group'}
2349 1 0 2 ref $x and ref $y

or 2 conditions

line l !l condition
77 0 0 'Error: ' . $parser->error || 'Unknown error while parsing initial text'
231 0 0 binmode STDERR, 'utf8' or die q[Cannot do binmode(STDERR,'utf8']
625 0 0 $$self{'use_class'}{'node'} || 'Graph::Easy::Node'
668 0 0 $$self{'use_class'}{'group'} || 'Graph::Easy::Group'
1035 92 136 $$entry[4] || 0
1317 0 5 $self->raw_attribute('font') || ''
1398 0 0 $a || 0
0 0 $b || 0
1613 11 0 $self->attribute('graph', 'label-pos') || 'top'

or 3 conditions

line l !l&&r !l&&!r condition
367 0 0 0 keys %{$$node{'edges'};} == 0 or not $node->has_predecessors
494 445 0 611 defined $f2 or $f1 =~ /^(name|id)$/
1013 22 20 442 $att =~ /$skip/ or $att eq 'border'
1039 91 1 0 $self->get_color_attribute($class, $att) || $val
1060 32 0 0 !defined($val) || $val eq 'inherit'
1370 25 50 0 not defined $max_x or $x > $max_x
1371 25 0 50 not defined $min_x or $x < $min_x
2050 1 0 5 $$edge{'to'} == $A or $$edge{'to'} == $B and $$edge{'from'} == $B
2211 3 3 29 not defined $level or $level < 0
2230 11 0 24 $are_graph and not defined $$g{'group'} or $$g{'group'} == $self