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 169 if (len == 0) XSRETURN_UNDEF;
82 160 9 if (rnd != len - 1) {
119 28 10 sx = x0 < x1 ? 1 : -1;
120 20 18 sy = y0 < y1 ? 1 : -1;
121 11 27 err = (dx > dy ? dx : -dy) / 2;
125 704 1 if (x0 < 0 || x0 >= MAP_COLS || y0 < 0 || y0 >= MAP_ROWS) break;
704 0 if (x0 < 0 || x0 >= MAP_COLS || y0 < 0 || y0 >= MAP_ROWS) break;
126 666 38 if (online) {
129 0 666 PUSHMARK(SP);
130 0 666 EXTEND(SP, 3);
137 556 110 answer = POPi;
138 666 0 FREETMPS;
140 665 1 if (answer == -1) break;
142 667 36 if (x0 == x1 && y0 == y1) break;
144 627 40 if (e2 > -dx) {
148 224 443 if (e2 < dy) {
169 70 32 while (count--) sum += ranval() % sides;
183 1 6444 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) {