Branch Coverage

src/pdfmake_action.c
Criterion Covered Total %
branch 41 88 46.5


line true false branch
39 0 29 if (!doc) return NULL;
42 0 29 if (!action) return NULL;
58 0 6 if (!action) return NULL;
70 0 5 if (!file) return NULL;
73 0 5 if (!action) return NULL;
79 0 5 if (!action->data.go_tor.file) return NULL;
86 0 5 if (!uri) return NULL;
89 0 5 if (!action) return NULL;
94 0 5 if (!action->data.uri.uri) return NULL;
101 0 11 if (!action) return NULL;
110 0 11 if (!name_str) return NULL;
112 6 5 if (strcmp(name_str, "NextPage") == 0) {
114 2 3 } else if (strcmp(name_str, "PrevPage") == 0) {
116 1 2 } else if (strcmp(name_str, "FirstPage") == 0) {
118 1 1 } else if (strcmp(name_str, "LastPage") == 0) {
120 1 0 } else if (strcmp(name_str, "Print") == 0) {
132 0 2 if (!script) return NULL;
135 0 2 if (!action) return NULL;
139 0 2 if (!action->data.javascript.script) return NULL;
150 0 0 if (target_count == 0) return NULL;
153 0 0 if (!action) return NULL;
156 0 0 if (!action->data.hide.targets) return NULL;
158 0 0 for (i = 0; i < target_count; i++) {
160 0 0 if (!action->data.hide.targets[i]) return NULL;
171 1 0 if (!action || !next) return PDFMAKE_EINVAL;
0 1 if (!action || !next) return PDFMAKE_EINVAL;
202 16 0 if (!action || !action->doc) return pdfmake_null();
0 16 if (!action || !action->doc) return pdfmake_null();
237 1 2 if (action->data.go_tor.new_window) {
251 0 7 if (action->data.uri.is_map) {
283 0 0 if (action->data.hide.target_count == 1) {
291 0 0 for (i = 0; i < action->data.hide.target_count; i++) {
299 0 0 if (!action->data.hide.hide) {
315 0 0 if (action->data.launch.new_window) {
324 0 16 if (action->next) {
327 0 0 if (next_num > 0) {
338 2 0 if (!action || !action->doc) return 0;
0 2 if (!action || !action->doc) return 0;
340 1 1 if (action->obj_num > 0) {
345 0 1 if (dict.kind != PDFMAKE_DICT) return 0;
370 15 0 if (!doc || !action) return 0;
0 15 if (!doc || !action) return 0;
406 3 12 if (highlight != PDFMAKE_HIGHLIGHT_INVERT) {
421 0 6 if (!action) return 0;