Branch Coverage

blib/lib/Chart/Math/Axis.pm
Criterion Covered Total %
branch 55 74 74.3


line true false branch
41 15 1 if (@_)
44 0 15 unless $self->add_data(@_)
61 1 15 unless defined $$self{'max'}
62 0 15 unless defined $$self{'min'}
63 0 15 unless defined $$self{'interval_size'}
81 0 19 unless @_
84 15 4 unless defined $$self{'max'}
85 15 4 unless defined $$self{'min'}
89 2 24 if $_ > $$self{'max'}
90 8 18 if $_ < $$self{'min'}
106 1 0 $_[0] > 1 ? :
119 0 0 unless (&Params::Util::_INSTANCE($_[0], 'GD::Graph::axestype'))
144 0 20 unless defined $$self{'max'}
145 0 20 unless defined $$self{'min'}
146 0 20 unless defined $$self{'maximum_intervals'}
149 8 12 if $$self{'max'} == $$self{'min'}
154 0 12 unless defined $Maximum or defined $Minimum
161 5 7 $max_magnitude > $min_magnitude ? :
177 0 64 unless my $NextInterval = $self->_reduce_interval($Interval)
189 12 52 if ($NextIntervalQuantity > $$self{'maximum_intervals'})
201 0 52 if ++$loop > 100
210 0 8 unless defined $$self{'max'}
211 0 8 unless defined $$self{'min'}
212 0 8 unless defined $$self{'maximum_intervals'}
215 1 7 if ($$self{'max'} == 0)
238 0 23 unless my $NextInterval = $self->_reduce_interval($Interval)
241 7 16 if ($NextIntervalQuantity > $$self{'maximum_intervals'})
251 0 16 if ++$loop > 100
258 88 10 &Params::Util::_INSTANCE($_[0], 'Math::BigFloat') ? :
263 32 66 if ($Interval->mantissa == 5) { }
31 35 elsif ($Interval->mantissa == 2) { }
35 0 elsif ($Interval->mantissa == 1) { }
285 28 16 &Params::Util::_INSTANCE($_[0], 'Math::BigFloat') ? :
290 9 35 if $BigFloat == 0
303 79 28 &Params::Util::_INSTANCE($_[0], 'Math::BigFloat') ? :
316 57 50 &Params::Util::_INSTANCE($_[0], 'Math::BigFloat') ? :
324 40 67 if $Number == 0