Branch Coverage

Index.xs
Criterion Covered Total %
branch 62 96 64.5


line true false branch
61 7 22 } else if (shift >= max_level) {
89 7 22 if (lat_0 <= -90) {
93 5 24 if (lat_1 >= 90) {
97 2 27 if ( lon_0 < -180.0 ) { lon_0 += 360.0; }
98 0 27 else if ( lon_0 > 180.0 ) { lon_0 -= 360.0; }
100 0 29 if ( lon_1 < -180.0 ) { lon_1 += 360.0; }
101 8 21 else if ( lon_1 > 180.0 ) { lon_1 -= 360.0; }
103 0 29 if ( lat_0 < -90.0 ) { lat_0 = -90.0; }
104 0 29 else if ( lat_0 > 90.0 ) { lat_0 = 90.0; }
106 0 29 if ( lat_1 < -90.0 ) { lat_1 = -90.0; }
107 0 29 else if ( lat_1 > 90.0 ) { lat_1 = 90.0; }
110 1 28 if (lat_0_idx >= max_size) lat_0_idx = max_size - 1;
114 5 24 if (lat_1_idx >= max_size) lat_1_idx = max_size - 1;
121 0 29 if (lat_0_idx > lat_1_idx) {
130 0 29 Inline_Stack_Push(sv_2mortal(newSVuv( grid_level )));
131 0 29 Inline_Stack_Push(sv_2mortal(newSVuv( grid_size )));
132 0 29 Inline_Stack_Push(sv_2mortal(newSVuv( max_grid_idx )));
133 0 29 Inline_Stack_Push(sv_2mortal(newSVuv( lat_0_idx )));
134 0 29 Inline_Stack_Push(sv_2mortal(newSVuv( lat_1_idx )));
135 0 29 Inline_Stack_Push(sv_2mortal(newSVuv( lon_0_idx )));
136 0 29 Inline_Stack_Push(sv_2mortal(newSVuv( lon_1_idx )));
160 14 48 } else if (shift >= max_level) {
188 15 47 if (lat_0 <= -90) {
192 10 52 if (lat_1 >= 90) {
196 4 58 if ( lon_0 < -180.0 ) { lon_0 += 360.0; }
197 0 58 else if ( lon_0 > 180.0 ) { lon_0 -= 360.0; }
199 0 62 if ( lon_1 < -180.0 ) { lon_1 += 360.0; }
200 12 50 else if ( lon_1 > 180.0 ) { lon_1 -= 360.0; }
202 0 62 if ( lat_0 < -90.0 ) { lat_0 = -90.0; }
203 0 62 else if ( lat_0 > 90.0 ) { lat_0 = 90.0; }
205 0 62 if ( lat_1 < -90.0 ) { lat_1 = -90.0; }
206 0 62 else if ( lat_1 > 90.0 ) { lat_1 = 90.0; }
209 2 60 if (lat_0_idx >= max_size) lat_0_idx = max_size - 1;
213 10 52 if (lat_1_idx >= max_size) lat_1_idx = max_size - 1;
220 0 62 if (lat_0_idx > lat_1_idx) {
229 0 62 Inline_Stack_Push(sv_2mortal(newSVuv( grid_level )));
230 0 62 Inline_Stack_Push(sv_2mortal(newSVuv( grid_size )));
231 0 62 Inline_Stack_Push(sv_2mortal(newSVuv( max_grid_idx )));
232 0 62 Inline_Stack_Push(sv_2mortal(newSVuv( lat_0_idx )));
233 0 62 Inline_Stack_Push(sv_2mortal(newSVuv( lat_1_idx )));
234 0 62 Inline_Stack_Push(sv_2mortal(newSVuv( lon_0_idx )));
235 0 62 Inline_Stack_Push(sv_2mortal(newSVuv( lon_1_idx )));
284 0 170 if ( n < 0.0 ) { n = 0.0; }
315 0 1218 if ( n < 0.0 ) { n = 0.0; }
353 0 29 if (PL_markstack_ptr != temp) {
376 0 62 if (PL_markstack_ptr != temp) {
394 51 0 if (PL_markstack_ptr != temp) {
417 140 0 if (PL_markstack_ptr != temp) {