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 165 if (len == 0) XSRETURN_UNDEF;
82 160 5 if (rnd != len - 1) {
119 13 24 sx = x0 < x1 ? 1 : -1;
120 23 14 sy = y0 < y1 ? 1 : -1;
121 8 29 err = (dx > dy ? dx : -dy) / 2;
125 802 1 if (x0 < 0 || x0 >= MAP_COLS || y0 < 0 || y0 >= MAP_ROWS) break;
802 0 if (x0 < 0 || x0 >= MAP_COLS || y0 < 0 || y0 >= MAP_ROWS) break;
126 765 37 if (online) {
129 0 765 PUSHMARK(SP);
130 0 765 EXTEND(SP, 3);
137 618 147 answer = POPi;
138 765 0 FREETMPS;
140 764 1 if (answer == -1) break;
142 766 35 if (x0 == x1 && y0 == y1) break;
144 729 37 if (e2 > -dx) {
148 272 494 if (e2 < dy) {
169 72 33 while (count--) sum += ranval() % sides;
183 1 6945 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) {