Branch Coverage

File:blib/lib/SVG/Sparkline/Utils.pm
Coverage:90.6%

line%coveragebranch
16100TFif $val eq '-0'
24100TFif ($$args{'width'}) { }
68100TFif $$desc{'min'} > 0
69100TFif $$desc{'max'} < 0
78100TFif 'ARRAY' eq ref $$array[0]
87100TFif $$desc{'ymin'} > 0
88100TFif $$desc{'ymax'} < 0
110100TFunless 'ARRAY' eq ref $p and 2 == @{$p;}
11150TFif $$p[0] < $$desc{'xmin'}
11250TFif $$p[0] > $$desc{'xmax'}
113100TFif $$p[1] < $$desc{'ymin'}
114100TFif $$p[1] > $$desc{'ymax'}
11750TFif $$desc{'ymin'} > 0
11850TFif $$desc{'ymax'} < 0
137100TFif (exists $$args{'bgcolor'})
152100TFunless exists $$args{$name}
153100TFunless 'ARRAY' eq ref $$args{$name}
154100TFunless @{$$args{$name};}
161100TFif $index eq 'first'
162100TFif $index eq 'last'
163100TFif not $index =~ /\D/ and $index < @{$values;}
164100TFif ('high' eq $index) { }
50TFelsif ('low' eq $index) { }
170100TFif $$values[$i][1] > $high
180100TFif $$values[$i][0] < $low
191100TFif $index eq 'first'
192100TFif $index eq 'last'
193100TFif not $index =~ /\D/ and $index < @{$values;}
194100TFif ('high' eq $index) { }
50TFelsif ('low' eq $index) { }
200100TFif $$values[$i] > $high
210100TFif $$values[$i] < $low