Branch Coverage

xs/canvas.xs
Criterion Covered Total %
branch 86 164 52.4


line true false branch
12 0 327 if (!arena) {
16 0 327 if (!RETVAL) {
54 327 0 if (self) {
68 0 107 if (pdfmake_gs_q(self) != PDFMAKE_OK)
78 0 107 if (pdfmake_gs_Q(self) != PDFMAKE_OK)
94 0 5 if (pdfmake_gs_cm(self, a, b, c, d, e, f) != PDFMAKE_OK)
105 0 62 if (pdfmake_gs_w(self, width) != PDFMAKE_OK)
116 0 18 if (pdfmake_gs_J(self, cap) != PDFMAKE_OK)
127 0 3 if (pdfmake_gs_j(self, join) != PDFMAKE_OK)
138 0 3 if (pdfmake_gs_M(self, miter) != PDFMAKE_OK)
155 0 8 Newx(pattern, array_len, double);
156 16 8 for (i = 0; i < array_len; i++) {
158 16 0 pattern[i] = elem ? SvNV(*elem) : 0.0;
162 0 8 if (err != PDFMAKE_OK)
173 0 1 if (pdfmake_gs_ri(self, intent) != PDFMAKE_OK)
184 0 1 if (pdfmake_gs_i(self, flatness) != PDFMAKE_OK)
195 0 1 if (pdfmake_gs_gs(self, name) != PDFMAKE_OK)
211 0 1839 if (pdfmake_path_m(self, x, y) != PDFMAKE_OK)
223 0 1837 if (pdfmake_path_l(self, x, y) != PDFMAKE_OK)
239 0 13 if (pdfmake_path_c(self, x1, y1, x2, y2, x3, y3) != PDFMAKE_OK)
253 0 1 if (pdfmake_path_v(self, x2, y2, x3, y3) != PDFMAKE_OK)
267 0 1 if (pdfmake_path_y(self, x1, y1, x3, y3) != PDFMAKE_OK)
281 0 82 if (pdfmake_path_re(self, x, y, width, height) != PDFMAKE_OK)
291 0 2 if (pdfmake_path_h(self) != PDFMAKE_OK)
305 0 1870 if (pdfmake_paint_S(self) != PDFMAKE_OK)
315 0 2 if (pdfmake_paint_s(self) != PDFMAKE_OK)
325 0 51 if (pdfmake_paint_f(self) != PDFMAKE_OK)
335 0 1 if (pdfmake_paint_f_star(self) != PDFMAKE_OK)
345 0 4 if (pdfmake_paint_B(self) != PDFMAKE_OK)
355 0 1 if (pdfmake_paint_B_star(self) != PDFMAKE_OK)
365 0 1 if (pdfmake_paint_b(self) != PDFMAKE_OK)
375 0 1 if (pdfmake_paint_b_star(self) != PDFMAKE_OK)
385 0 2 if (pdfmake_paint_n(self) != PDFMAKE_OK)
399 0 1 if (pdfmake_clip_W(self) != PDFMAKE_OK)
409 0 1 if (pdfmake_clip_W_star(self) != PDFMAKE_OK)
424 0 1 if (pdfmake_color_CS(self, name) != PDFMAKE_OK)
435 0 1 if (pdfmake_color_cs(self, name) != PDFMAKE_OK)
446 0 4 if (pdfmake_color_G(self, gray) != PDFMAKE_OK)
457 0 3 if (pdfmake_color_g(self, gray) != PDFMAKE_OK)
470 0 60 if (pdfmake_color_RG(self, r, g, b) != PDFMAKE_OK)
483 0 1149 if (pdfmake_color_rg(self, r, g, b) != PDFMAKE_OK)
497 0 3 if (pdfmake_color_K(self, c, m, y, k) != PDFMAKE_OK)
511 0 3 if (pdfmake_color_k(self, c, m, y, k) != PDFMAKE_OK)
525 0 1223 if (pdfmake_text_BT(self) != PDFMAKE_OK)
535 0 1223 if (pdfmake_text_ET(self) != PDFMAKE_OK)
546 0 1 if (pdfmake_text_Tc(self, charSpace) != PDFMAKE_OK)
557 0 1 if (pdfmake_text_Tw(self, wordSpace) != PDFMAKE_OK)
568 0 1 if (pdfmake_text_Tz(self, scale) != PDFMAKE_OK)
579 0 4 if (pdfmake_text_TL(self, leading) != PDFMAKE_OK)
591 0 1212 if (pdfmake_text_Tf(self, font, size) != PDFMAKE_OK)
602 0 3 if (pdfmake_text_Tr(self, render) != PDFMAKE_OK)
613 0 3 if (pdfmake_text_Ts(self, rise) != PDFMAKE_OK)
625 0 149 if (pdfmake_text_Td(self, tx, ty) != PDFMAKE_OK)
637 0 1 if (pdfmake_text_TD(self, tx, ty) != PDFMAKE_OK)
653 0 1079 if (pdfmake_text_Tm(self, a, b, c, d, e, f) != PDFMAKE_OK)
663 0 2 if (pdfmake_text_Tstar(self) != PDFMAKE_OK)
678 0 1229 if (pdfmake_text_Tj(self, (const uint8_t *)str, len) != PDFMAKE_OK)
699 0 2 if (arr_obj.kind != PDFMAKE_ARRAY)
702 8 2 for (i = 0; i < array_len; i++) {
705 0 8 if (!elem) {
707 5 3 } else if (SvIOK(*elem) || SvNOK(*elem)) {
0 5 } else if (SvIOK(*elem) || SvNOK(*elem)) {
709 5 0 } else if (SvPOK(*elem)) {
716 0 8 if (!pdfmake_array_push(arena, &arr_obj, item))
721 0 2 if (err != PDFMAKE_OK)
736 0 1 if (pdfmake_text_apostrophe(self, (const uint8_t *)str, len) != PDFMAKE_OK)
753 0 1 if (pdfmake_text_quote(self, aw, ac, (const uint8_t *)str, len) != PDFMAKE_OK)
768 0 1 if (pdfmake_xobj_Do(self, name) != PDFMAKE_OK)
783 0 1 if (pdfmake_sh(self, name) != PDFMAKE_OK)
798 0 1 if (pdfmake_mc_BMC(self, tag) != PDFMAKE_OK)
808 0 1 if (pdfmake_mc_EMC(self) != PDFMAKE_OK)
822 0 1 if (pdfmake_compat_BX(self) != PDFMAKE_OK)
832 0 1 if (pdfmake_compat_EX(self) != PDFMAKE_OK)
851 0 18 if (pdfmake_gs_q(self) != PDFMAKE_OK)
853 0 18 if (pdfmake_gs_cm(self, width, 0, 0, height, x, y) != PDFMAKE_OK)
855 0 18 if (pdfmake_xobj_Do(self, name) != PDFMAKE_OK)
857 0 18 if (pdfmake_gs_Q(self) != PDFMAKE_OK)
872 0 7 if (pdfmake_content_begin_ocg(self, res_name) != PDFMAKE_OK)
882 0 7 if (pdfmake_content_end_ocg(self) != PDFMAKE_OK)
1005 5310 90 for (ci = 0; methods[ci].name; ci++) {
1006 5310 0 PDFMAKE_REGISTER_CHAIN(stash, methods[ci].name, canvas_table_id, methods[ci].idx);
5310 0 PDFMAKE_REGISTER_CHAIN(stash, methods[ci].name, canvas_table_id, methods[ci].idx);