Branch Coverage

blib/lib/Chart/Mountain.pm
Criterion Covered Total %
branch 22 40 55.0


line true false branch
82 36 0 if (defined $y_sum and $y_sum >= 0)
85 72 0 if (defined $datum and $datum >= 0) { }
94 36 0 if (defined $y_sum)
95 16 20 unless defined $max and $y_sum <= $max
111 2 2 unless $$self{'patterns'}
114 4 0 $$self{'num_datapoints'} > 0 ? :
122 4 0 $$self{'max_val'} ? :
135 0 108 if (defined $datum and $datum > $$self{'max_val'})
138 108 0 if (defined $datum and $datum >= 0) { }
155 0 4 if ($x_begin > $x_end)
169 4 8 if ((@y - 1 - $dataset) % 2) { }
171 36 0 if defined $$y_ref[$_]
176 72 0 if defined $$y_ref[$_]
182 6 6 if ($patterns[$dataset]) { }
183 6 0 if $patterns[$dataset]->transparent >= 0
192 8 4 unless ($dataset == 0)
208 0 4 if ($repair_top_flag)
229 0 0 if ($$self{'title'})
234 0 0 if ($$self{'sub_title'})
239 0 0 if ($$self{'legend'} =~ /^top$/i)