Condition Coverage

lib/Graph/Easy/Attributes.pm
Criterion Covered Total %
condition 162 222 72.9


and 2 conditions

line l !l condition
3877 0 5 push @rc, undef and next

and 3 conditions

line !l l&&!r l&&r condition
2441 88 4 0 $width eq '' and $style ne 'double'
3338 5 0 787 $color eq '' and $width eq ''
1115 792 0 $def_style eq $style and ($color eq '' and $width eq '')
3453 7354 0 0 $name eq 'background' and ref $$self{'group'}
3499 0 0 0 not defined $val and $try =~ /\./
3520 0 0 1 defined $val and $val ne 'inherit'
3537 35 0 297 not $color =~ /^#/ and $color ne ''
3555 0 0 7 not $color =~ /^#/ and $color ne ''
3665 62677 108 0 $name eq 'background' and $val
62785 0 0 $name eq 'background' and $val and $val eq 'inherit'
3668 0 0 0 $parent and $parent != $self
3672 60657 2128 0 defined $val and $type >= 6 || $val ne 'inherit' || $class eq 'graph'
3697 1 65024 3094 @tries and $tries[-1] eq 'graph'
3727 20061 16928 1231 not defined $val and $try =~ /\./
3733 20408 16928 884 not defined $val and $try =~ /\./
3751 0 72554 0 defined $val and $val ne 'inherit' || $try eq 'graph'
3758 60736 0 154 $name eq 'background' and $val
60736 13 141 $name eq 'background' and $val and $val eq 'inherit'
3761 52 0 89 $parent and $parent != $self
3804 57 2 25 defined $error and $error == 1
3805 57 0 2 defined $error and $error == 2
3870 886 234 0 $no_multiples and $multiples
3877 1110 19 5 $multiples and $v eq ''
3879 317 431 381 defined $check and not ref $check
3956 3 1964 919 defined $object and not ref $object
3959 0 2886 0 defined $color_scheme and $color_scheme eq 'inherit'
3972 566 325 45 exists $$r{$atr} and not defined $$r{$atr}
672 41 178 exists $$ra{$atr} and not defined $$ra{$atr}
3980 4580 0 63 $color_remap and defined $entry
4580 0 63 $color_remap and defined $entry and defined $val
3991 1101 101 4 defined $x and $atr =~ /^x-/
4004 859 0 1215 defined $a and defined $v
4011 848 361 177 defined $val and defined $rc
4019 0 146 2448 defined $at && defined $v
4024 1242 967 2 $encode and $v =~ /[;"\x00-\x1f]/

or 2 conditions

line l !l condition
1942 5 4 $scheme ||= 'w3c'
1951 7 2 $scheme ||= 'w3c'
2141 604 121 $scheme ||= 'w3c'
2274 0 0 $self->attribute('fontsize') || ''
2288 0 0 $1 || 5
2419 94 0 $style ||= ''
2423 2 0 'Graph::Easy'->color_as_hex($color, $scheme) || ''
2456 1121 44 $style ||= ''
2475 1831 64 $self->attribute('borderwidth') || '0'
2478 1831 0 $self->attribute('borderstyle') || 'none'
2552 35 1 $style ||= 'solid'
2557 35 1 $1 || ''
3368 3683 0 $$self{'class'} || 'graph'
3417 7354 0 $$self{'class'} || 'graph'
3434 1478 5876 $$entry[4] || 0
3605 76 0 $$self{'class'} || 'graph'
3644 20055 50188 $$entry[4] || 0
3850 552 568 $$entry[4] || 0
3938 2883 3 $object || 'node'
3939 1964 0 $$object{'class'} || 'graph'
3984 45 18 $$entry[4] || 0
4042 436 0 $$self{'class'} || 'graph'
4081 1 0 $$entry[4] || 0

or 3 conditions

line l !l&&r !l&&!r condition
2025 10 6 13 $h1 == 0 or $h1 == 6
2244 0 2 79 $$ts{'underline'} or $$ts{'none'}
2 0 79 $$ts{'underline'} or $$ts{'none'} or $$ts{'overline'}
2 0 79 $$ts{'underline'} or $$ts{'none'} or $$ts{'overline'} or $$ts{'line-through'}
3385 52 6222 0 $$s{$name} || $$attributes{'all'}{$name} || $$attributes{$base_class}{$name}
3423 4700 2654 0 $$s{$name} || $$attributes{'all'}{$name} || $$attributes{$base_class}{$name}
3456 6775 578 1 not defined $val or $val ne 'inherit'
7353 0 1 not defined $val or $val ne 'inherit' or $name =~ /^x-([a-z_]+-)*[a-z_]+([0-9]*)\z/
3576 140 108 204 $$s{$name} || $$attributes{'all'}{$name} || $$attributes{$base_class}{$name}
3633 27616 42623 4 $$s{$name} || $$attributes{'all'}{$name} || $$attributes{$base_class}{$name}
3672 2124 0 4 $type >= 6 || $val ne 'inherit' || $class eq 'graph'
3751 60635 255 11664 $val ne 'inherit' || $try eq 'graph'
3843 675 445 54 $$s{$name} || $$attributes{'all'}{$name} || $$attributes{$class}{$name}
3969 3930 0 1141 ref $object or exists $$ral{$atr}
3972 9 196 936 not defined $val or $val eq ''
205 0 936 not defined $val or $val eq '' or exists $$r{$atr} and not defined $$r{$atr}
45 0 891 not defined $val or $val eq '' or exists $$r{$atr} and not defined $$r{$atr} or exists $$ra{$atr} and not defined $$ra{$atr}
3978 2536 2006 101 $$attributes{'all'}{$atr} || $$attributes{$class}{$atr}
3991 1858 1579 1206 exists $$r{$atr} or exists $$ra{$atr}
3437 0 1206 exists $$r{$atr} or exists $$ra{$atr} or defined $x and $atr =~ /^x-/
4019 146 237 2211 not defined $at && defined $v or $v eq ''
4047 435 1 0 $$self{'graph'} || $self
4074 1 0 0 $$s{$name} || $$attributes{'all'}{$name} || $$attributes{$base_class}{$name}