Branch Coverage

callback.c
Criterion Covered Total %
branch 44 98 44.9


line true false branch
21 20 18 MAKE_SETTABLE(pltr)
20 0 MAKE_SETTABLE(pltr)
0 20 MAKE_SETTABLE(pltr)
40 0 269280 PUSHMARK(SP);
41 0 269280 XPUSHs(sv_2mortal(newSVnv((double) x)));
42 0 269280 XPUSHs(sv_2mortal(newSVnv((double) y)));
43 0 269280 XPUSHs((SV*) pltr_data);
50 0 269280 if (count != 2)
57 269280 0 FREETMPS;
63 18 20 if ( !SvROK(cb) ) return NULL; /* Added to prevent bug in plshades for 0 input. D. Hunt 12/18/2008 */
66 0 20 if (sub == pltr0_iv)
68 4 16 else if (sub == pltr1_iv)
70 12 4 else if (sub == pltr2_iv)
73 4 0 return SvTRUE(cb) ? (void*) pltr_callback : NULL;
76 0 20 MAKE_SETTABLE(defined)
0 0 MAKE_SETTABLE(defined)
0 0 MAKE_SETTABLE(defined)
85 0 0 PUSHMARK(SP);
86 0 0 XPUSHs(sv_2mortal(newSVnv((double) x)));
87 0 0 XPUSHs(sv_2mortal(newSVnv((double) y)));
94 0 0 if (count != 1)
100 0 0 FREETMPS;
106 2 4 MAKE_SETTABLE(mapform)
2 0 MAKE_SETTABLE(mapform)
0 2 MAKE_SETTABLE(mapform)
146 0 4700 PUSHMARK(SP);
147 0 4700 XPUSHs(x_sv);
148 0 4700 XPUSHs(y_sv);
157 0 4700 if (count != 2)
163 9400 4700 for (i = 0; i < n; i++) {
169 4700 0 FREETMPS;
175 0 2 MAKE_SETTABLE(xform)
0 0 MAKE_SETTABLE(xform)
0 0 MAKE_SETTABLE(xform)
189 0 8715 PUSHMARK(SP);
190 0 8715 XPUSHs(x_sv);
191 0 8715 XPUSHs(y_sv);
192 0 8715 XPUSHs(data);
201 0 8715 if (count != 2)
208 8715 0 FREETMPS;
213 0 1 MAKE_SETTABLE(labelfunc)
0 0 MAKE_SETTABLE(labelfunc)
0 0 MAKE_SETTABLE(labelfunc)
227 0 12 PUSHMARK(SP);
228 0 12 XPUSHs(axis_sv);
229 0 12 XPUSHs(value_sv);
230 0 12 XPUSHs(length_sv);
239 0 12 if (count != 1)
247 12 0 FREETMPS;