Condition Coverage

blib/lib/Geo/Index.pm
Criterion Covered Total %
condition 74 146 50.6


and 2 conditions

line l !l condition
552 19 0 defined $_points and scalar @$_points

and 3 conditions

line !l l&&!r l&&r condition
691 0 0 0 $lat == $indexed_position->[0] and $lon == $indexed_position->[1]
2460 2 0 47 $p_lat >= $south and $p_lat <= $north
2 0 47 $p_lat >= $south and $p_lat <= $north and $p_lon >= $west
0 3 44 $p_lat >= $south and $p_lat <= $north and $p_lon >= $west and $p_lon <= $east
5 0 0 $include_south_pole and $p_lat == -90
5 0 0 $include_north_pole and $p_lat == 90
2500 20 22 692 $p_lat >= $south and $p_lat <= $north
42 5 687 $p_lat >= $south and $p_lat <= $north and $p_lon >= $west
27 17 670 $p_lat >= $south and $p_lat <= $north and $p_lon >= $west and $p_lon <= $east
50 14 0 $include_south_pole and $p_lat == -90
52 12 0 $include_north_pole and $p_lat == 90
2547 0 0 0 $p_lat >= $south and $p_lat <= $north
0 0 0 $p_lat >= $south and $p_lat <= $north and $p_lon >= $west || $p_lon <= $east || $include_south_pole && $p_lat == -90 || $include_north_pole && $p_lat == 90
2587 0 5 15 $p_lat >= $south and $p_lat <= $north
5 4 11 $p_lat >= $south and $p_lat <= $north and $p_lon >= $west || $p_lon <= $east || $include_south_pole && $p_lat == -90 || $include_north_pole && $p_lat == 90
3345 168 91 8 $number_of_points_desired and scalar @valid >= $number_of_points_desired
3872 0 2 12 $C_CODE_COMPILED and $type eq 'double'
0 0 2 $C_CODE_COMPILED and $type eq 'float'

or 3 conditions

line l !l&&r !l&&!r condition
457 0 19 0 ref $class || $class
599 0 685 0 $type eq 'ARRAY' or $type eq 'HASH'
1270 30 60 120 $search_radius == -1 or $search_radius > $self->{'equatorial_circumference'} / 4
1667 0 0 156 defined $pre_condition or defined $post_condition
1739 1 1 50 defined $pre_condition or defined $post_condition
2460 44 0 5 $p_lat >= $south and $p_lat <= $north and $p_lon >= $west and $p_lon <= $east or $include_south_pole and $p_lat == -90
0 0 5 $p_lat >= $south and $p_lat <= $north and $p_lon >= $west and $p_lon <= $east or $include_south_pole and $p_lat == -90 or $include_north_pole and $p_lat == 90
2500 670 0 64 $p_lat >= $south and $p_lat <= $north and $p_lon >= $west and $p_lon <= $east or $include_south_pole and $p_lat == -90
0 0 64 $p_lat >= $south and $p_lat <= $north and $p_lon >= $west and $p_lon <= $east or $include_south_pole and $p_lat == -90 or $include_north_pole and $p_lat == 90
2547 0 0 0 $p_lon >= $west || $p_lon <= $east || $include_south_pole && $p_lat == -90 || $include_north_pole && $p_lat == 90
2587 1 1 4 $p_lon >= $west || $p_lon <= $east || $include_south_pole && $p_lat == -90 || $include_north_pole && $p_lat == 90
2970 66 7 8 $no_pre_condition or &$pre_condition($_point, $_search_point, $user_data)
2982 73 0 0 $no_search_radius or $distance <= $search_radius
2983 0 73 0 $no_post_condition or &$post_condition($_point, $_search_point, $user_data)
3114 63 6 6 $no_pre_condition or &$pre_condition($_point, $_search_point, $user_data)
3127 9 0 0 $no_search_radius or $distance < $largest_distance_seen
3128 9 0 0 $no_search_radius or $distance <= $search_radius
3129 2 7 0 $no_post_condition or &$post_condition($_point, $_search_point, $user_data)
3154 86 0 0 $no_pre_condition or &$pre_condition($_point, $_search_point, $user_data)
3167 8 0 0 $no_search_radius or $distance < $largest_distance_seen
3168 8 0 0 $no_search_radius or $distance <= $search_radius
3170 0 8 0 $no_post_condition or &$post_condition($_point, $_search_point, $user_data)
3197 4 0 0 $no_pre_condition or &$pre_condition($_point, $_search_point, $user_data)
3210 3 0 0 $no_search_radius or $distance < $largest_distance_seen
3211 3 0 0 $no_search_radius or $distance <= $search_radius
3212 0 2 1 $no_post_condition or &$post_condition($_point, $_search_point, $user_data)
3348 259 0 0 $no_search_radius or $largest_distance_seen < $search_radius
3595 0 0 4 defined $post_condition || defined $user_data
4200 0 0 0 not defined $stats[$level]{'min_tile_points'} or $count < $stats[$level]{'min_tile_points'}
4206 0 0 0 not defined $stats[$level]{'max_tile_points'} or $count > $stats[$level]{'max_tile_points'}