Branch Coverage

blib/lib/HTML/BarGraph.pm
Criterion Covered Total %
branch 0 184 0.0


line true false branch
19 0 0 if (scalar(@_) % 2 == 0) { }
0 0 elsif (ref $_[0] eq 'HASH') { }
30 0 0 unless check_args(\%args)
46 0 0 if $args{'direction'} eq 'h'
50 0 0 if $args{'ylabel'}
53 0 0 if ($args{'direction'} eq 'v') { }
0 0 elsif ($args{'direction'} eq 'h') { }
61 0 0 if ($args{'direction'} eq 'v') { }
0 0 elsif ($args{'direction'} eq 'h') { }
62 0 0 if $args{'showaxistags'}
70 0 0 if $args{'direction'} eq 'h'
72 0 0 if $args{'xlabel'}
88 0 0 unless (ref $$args{'data'} eq 'ARRAY')
92 0 0 if (exists $$args{'tags'} and ref $$args{'tags'} ne 'ARRAY')
100 0 0 if (ref $$args{'data'}[0] eq '')
110 0 0 if $maxval < $_
113 0 0 if $maxidx < $t
115 0 0 unless ($maxidx)
122 0 0 if ($$args{'tags'} and scalar @{$$args{'tags'};} < $maxidx)
136 0 0 if $$args{'barlength'}
147 0 0 unless exists $$args{'addalt'}
148 0 0 unless exists $$args{'showaxistags'}
149 0 0 unless exists $$args{'showvalues'}
150 0 0 unless exists $$args{'setspacer'}
153 0 0 if $$args{'direction'} eq '-'
154 0 0 if $$args{'direction'} eq '|'
155 0 0 if ($$args{'bordertype'})
156 0 0 if ($$args{'bordertype'} eq 'flat') { }
0 0 elsif ($$args{'bordertype'} eq 'reised') { }
178 0 0 unless $$args{'tags'}
179 0 0 unless $datasets == 1 and $$args{'tags'}
180 0 0 unless $datasets == 1
181 0 0 if $datasets == 1
182 0 0 if exists $$args{'colors'} and ref $$args{'colors'} ne 'ARRAY'
184 0 0 unless $$args{'showvalues'}
185 0 0 unless $$args{'showvalues'}
186 0 0 if $$args{'bartype'} eq 'html'
187 0 0 if $$args{'bartype'} eq 'html'
194 0 0 unless my $args = shift()
200 0 0 if ($$args{'tags'} and $$args{'highlighttag'})
201 0 0 if (ref $$args{'highlighttag'} eq 'ARRAY') { }
0 0 elsif (ref $$args{'highlighttag'} eq '') { }
211 0 0 unless (scalar keys %$hlttab)
212 0 0 if (ref $$args{'highlightpos'} eq 'ARRAY') { }
0 0 elsif (ref $$args{'highlightpos'} eq '') { }
228 0 0 unless defined $index
230 0 0 if ($hlttype == 1) { }
0 0 elsif ($hlttype == 2) { }
244 0 0 if ($datasets == 1) { }
245 0 0 unless $$args{'colors'}
249 0 0 if (exists $$args{'colors'} and $colors) { }
250 0 0 if ($colors < $datasets)
266 0 0 unless my $args = shift()
269 0 0 if ($$args{'bordertype'} eq 'flat') { }
0 0 elsif ($$args{'bordertype'} eq 'reised') { }
284 0 0 if $$args{'direction'} eq 'h' and $$args{'graphminsize'}
296 0 0 unless my $args = shift()
300 0 0 if ($$args{'bordertype'})
315 0 0 unless my $args = shift()
317 0 0 unless $$args{'title'}
320 0 0 if $$args{'ylabel'}
321 0 0 $$args{'direction'} eq 'v' ? :
322 0 0 if $$args{'showaxistags'} and $$args{'direction'} eq 'h'
335 0 0 unless my $args = shift()
338 0 0 if $$args{'ylabel'}
339 0 0 if $$args{'showaxistags'}
349 0 0 unless my $args = shift()
351 0 0 $$args{'direction'} eq 'h' ? :
369 0 0 unless my $args = shift()
371 0 0 $$args{'direction'} eq 'v' ? :
375 0 0 if $$args{'ylabel'}
376 0 0 if $$args{'direction'} eq 'v' or $$args{'direction'} eq 'h' and $$args{'showaxistags'}
386 0 0 if $$args{'direction'} eq 'v'
396 0 0 unless defined $i
413 0 0 unless my $args = shift()
417 0 0 if $$args{'ylabel'}
445 0 0 if ($pixfmt) { }
451 0 0 if $addalt
457 0 0 $x <= $y ? :
458 0 0 $x <= $y ? :
475 0 0 unless defined $v
479 0 0 is_highlighted($args, $i) ? :
483 0 0 if ($dir eq 'v') { }
488 0 0 if $$args{'showvalues'}
503 0 0 if $$args{'showvalues'}
554 0 0 unless my $args = shift()
561 0 0 unless my $args = shift()
574 0 0 if $$args{'showaxistags'}
582 0 0 if $$args{'setspacer'}
592 0 0 unless my $args = shift()
596 0 0 unless $$args{'ylabel'}
611 0 0 if $$args{'setspacer'}