Branch Coverage

lib/Game/Xomb.xs
Criterion Covered Total %
branch 55 72 76.3


line true false branch
27 2 1 if (!(items & 1)) croak("uneven number of arguments");
29 3 2 for (i = 1; i < items; i += 2) {
34 0 3 PUSHMARK(SP);
35 0 3 EXTEND(SP, 2);
41 0 3 FREETMPS;
79 1 181 if (len == 0) XSRETURN_UNDEF;
82 172 9 if (rnd != len - 1) {
119 8 28 sx = x0 < x1 ? 1 : -1;
120 9 27 sy = y0 < y1 ? 1 : -1;
121 10 26 err = (dx > dy ? dx : -dy) / 2;
125 1046 1 if (x0 < 0 || x0 >= MAP_COLS || y0 < 0 || y0 >= MAP_ROWS) break;
1046 0 if (x0 < 0 || x0 >= MAP_COLS || y0 < 0 || y0 >= MAP_ROWS) break;
126 1010 36 if (online) {
129 0 1010 PUSHMARK(SP);
130 0 1010 EXTEND(SP, 3);
137 855 155 answer = POPi;
138 1010 0 FREETMPS;
140 1009 1 if (answer == -1) break;
142 1011 34 if (x0 == x1 && y0 == y1) break;
144 976 35 if (e2 > -dx) {
148 255 756 if (e2 < dy) {
169 66 30 while (count--) sum += ranval() % sides;
183 1 7888 if (len == 0) XSRETURN_UNDEF;
202 0 2 sx = x0 < x1 ? 1 : -1;
203 0 2 sy = y0 < y1 ? 1 : -1;
204 2 0 err = (dx > dy ? dx : -dy) / 2;
208 7 1 if (x0 < 0 || x0 >= MAP_COLS || y0 < 0 || y0 >= MAP_ROWS) break;
7 0 if (x0 < 0 || x0 >= MAP_COLS || y0 < 0 || y0 >= MAP_ROWS) break;
209 5 2 if (online) {
212 0 5 PUSHMARK(SP);
213 0 5 EXTEND(SP, 3);
220 5 0 answer = POPi;
221 5 0 FREETMPS;
223 4 1 if (answer == -1) break;
226 6 0 if (e2 > -dx) {
230 6 0 if (e2 < dy) {