Branch Coverage

src/pdfmake_font_write.c
Criterion Covered Total %
branch 9 40 22.5


line true false branch
46 1 0 if (!font || !utf8 || !out_bytes) return PDFMAKE_EINVAL;
1 0 if (!font || !utf8 || !out_bytes) return PDFMAKE_EINVAL;
0 1 if (!font || !utf8 || !out_bytes) return PDFMAKE_EINVAL;
51 5 1 while (p < end) {
55 5 0 if ((*p & 0x80) == 0) {
57 0 0 } else if ((*p & 0xE0) == 0xC0) {
58 0 0 if (p + 1 >= end) break;
61 0 0 } else if ((*p & 0xF0) == 0xE0) {
62 0 0 if (p + 2 >= end) break;
66 0 0 } else if ((*p & 0xF8) == 0xF0) {
67 0 0 if (p + 3 >= end) break;
78 5 0 if (font->type == PDFMAKE_FONT_TYPE1) {
81 5 0 if (cp >= 32 && cp <= 255) {
5 0 if (cp >= 32 && cp <= 255) {
83 0 0 } else if (cp == 0x2018) {
85 0 0 } else if (cp == 0x2019) {
87 0 0 } else if (cp == 0x201C) {
89 0 0 } else if (cp == 0x201D) {
95 0 0 } else if (font->type == PDFMAKE_FONT_TRUETYPE && font->ttf) {
0 0 } else if (font->type == PDFMAKE_FONT_TRUETYPE && font->ttf) {