Branch Coverage

blib/lib/Gpx/Addons/Filter.pm
Criterion Covered Total %
branch 3 52 5.7


line true false branch
135 0 0 unless (defined $ref)
143 0 0 if $DEBUG > 2
146 0 0 if $DEBUG > 1
155 0 0 if ($first_point > $last_point)
161 0 0 if (defined $start and defined $end) { }
0 0 elsif (defined $start and not defined $end) { }
0 0 elsif (defined $end and not defined $start) { }
165 0 0 unless ($start =~ /\d+/ and $end =~ /\d+/)
168 0 0 if ($start > $end)
171 0 0 if ($start < 915148800 or $end < 915148800)
177 0 0 if ($first_point < $start and $last_point < $start) { }
0 0 elsif ($first_point > $end and $last_point > $end) { }
189 0 0 if ($last_point >= $start) { }
196 0 0 if ($first_point <= $end) { }
206 0 0 if (defined $$filtered{'segments'}) { }
209 0 0 if $DEBUG > 2
254 0 0 unless (defined $tolerance)
259 0 0 if (within_bounds($wp, $box, $tolerance))
302 0 0 unless (defined $wp and defined $box)
308 0 0 if ($$wp{'lat'} <= $$box{'maxlat'} + $tolerance)
309 0 0 if ($$wp{'lat'} >= $$box{'minlat'} - $tolerance)
310 0 0 if ($$wp{'lon'} <= $$box{'maxlon'} + $tolerance)
311 0 0 if ($$wp{'lon'} >= $$box{'minlon'} - $tolerance)
336 3 0 if ($date_strg =~ / ^ # nothing in front (\d{4}) # year - # seperated by a dash (\d{1,2}) # month (may have only one number) - # seperated by a dash (\d{1,2}) # day (may be one number) $ # nothing after /x) { }
349 0 3 if ($day < 1 or $day > 31 or $month + 1 < 1 or $month + 1 > 12)
357 0 3 if ($year + 1900 < 32 or $year + 1900 > 2037)