blib/lib/Imager/Graph.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 26 | 47 | 55.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
108 | 1 | 18 | 0 | @$data and ref $$data[0] |
19 | 0 | 0 | @$data and ref $$data[0] and ref $$data[0] =~ /ARRAY/ | |
2066 | 0 | 0 | 477 | $work{'color'} and not ref $work{'color'} |
2494 | 2 | 10 | 0 | $opts{'x1'} != $opts{'x2'} and $opts{'y1'} != $opts{'y2'} |
line | l | !l | condition |
---|---|---|---|
90 | 0 | 5 | $$self{'graph_data'} || [] |
1585 | 12 | 27 | $$self{'custom_style'} || {} |
1903 | 1075 | 0 | $$self{'_style'}{'colors'} || [] |
1904 | 1075 | 0 | $$self{'_style'}{'fills'} || [] |
1914 | 1075 | 0 | $$colors[$index % @$colors] || '000000' |
2014 | 39 | 0 | $self->_get_number('width') || 256 |
2015 | 39 | 0 | $self->_get_number('height') || 256 |
2018 | 4 | 35 | $channels ||= 3 |
2492 | 12 | 0 | delete $opts{'style'} || 'solid' |
2547 | 1 | 17 | delete $opts{'style'} || 'solid' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
1588 | 10 | 29 | 0 | $style ||= $styles{$def_style} |
2127 | 7 | 0 | 0 | $halign eq 'center' or $halign eq 'centre' |
2140 | 2 | 0 | 0 | $valign eq 'center' or $valign eq 'centre' |
2494 | 0 | 0 | 12 | $style eq 'solid' or $opts{'x1'} != $opts{'x2'} and $opts{'y1'} != $opts{'y2'} |
8 | 4 | 0 | $style eq 'dashed' or $style eq 'dotted' |