Branch Coverage

blib/lib/Geo/Compass/Variation.pm
Criterion Covered Total %
branch 20 20 100.0


line true false branch
130 2 39 if @_ < 2
134 3 36 unless $lat =~ /^-?\d+(?:\.\d+)?$/
135 3 33 unless $lon =~ /^-?\d+(?:\.\d+)?$/
136 4 29 if defined $alt and not $alt =~ /^\d+$/
137 3 26 if defined $year and not $year =~ /^-?\d+(?:\.\d+)?$/
140 2 24 if ($lat < -180 or $lat > 180)
143 2 22 if ($lon < -180 or $lon > 180)
147 21 1 defined $alt ? :
148 20 2 defined $year ? :
150 2 20 if ($year < 2020 or $year > 2024)