Branch Coverage

util.c
Criterion Covered Total %
branch 4 152 2.6


line true false branch
6 0 0 if (!val) {
10 0 0 if (SvIOK(val)) {
12 0 0 int len = sprintf(str, "%ld", (long) SvIV(val));
13 0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
14 0 0 } else if (SvNOK(val)) {
16 0 0 int len = sprintf(str, "%lf", (double) SvNV(val));
17 0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
18 0 0 } else if (SvPOK(val)) {
20 0 0 char* str = SvPV(val, len);
21 0 0 buffer_append(buf, "\"", 1);
0 0 buffer_append(buf, "\"", 1);
0 0 buffer_append(buf, "\"", 1);
0 0 buffer_append(buf, "\"", 1);
22 0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
0 0 buffer_append(buf, str, len);
23 0 0 buffer_append(buf, "\"", 1);
0 0 buffer_append(buf, "\"", 1);
0 0 buffer_append(buf, "\"", 1);
0 0 buffer_append(buf, "\"", 1);
24 0 0 } else if (SvROK(val)) {
26 0 0 if (SvTYPE(rv) == SVt_PVAV) {
28 0 0 } else if (SvTYPE(rv) == SVt_PVHV) {
37 0 14 if (!hash) {
41 0 14 buffer_append(buf, "{", 1);
0 0 buffer_append(buf, "{", 1);
0 0 buffer_append(buf, "{", 1);
0 0 buffer_append(buf, "{", 1);
49 14 0 if (!entry) {
53 0 0 if (count++) {
54 0 0 buffer_append(buf, ",", 1);
0 0 buffer_append(buf, ",", 1);
0 0 buffer_append(buf, ",", 1);
0 0 buffer_append(buf, ",", 1);
60 0 0 buffer_append(buf, "\"", 1);
0 0 buffer_append(buf, "\"", 1);
0 0 buffer_append(buf, "\"", 1);
0 0 buffer_append(buf, "\"", 1);
61 0 0 buffer_append(buf, key, len);
0 0 buffer_append(buf, key, len);
0 0 buffer_append(buf, key, len);
0 0 buffer_append(buf, key, len);
0 0 buffer_append(buf, key, len);
62 0 0 buffer_append(buf, "\":", 2);
0 0 buffer_append(buf, "\":", 2);
0 0 buffer_append(buf, "\":", 2);
0 0 buffer_append(buf, "\":", 2);
66 0 14 buffer_append(buf, "}", 1);
0 0 buffer_append(buf, "}", 1);
0 0 buffer_append(buf, "}", 1);
0 0 buffer_append(buf, "}", 1);
73 0 0 if (!array) {
77 0 0 buffer_append(buf, "[", 1);
0 0 buffer_append(buf, "[", 1);
0 0 buffer_append(buf, "[", 1);
0 0 buffer_append(buf, "[", 1);
80 0 0 for (j = 0; j <= top; ++j) {
82 0 0 if (j) {
83 0 0 buffer_append(buf, ",", 1);
0 0 buffer_append(buf, ",", 1);
0 0 buffer_append(buf, ",", 1);
0 0 buffer_append(buf, ",", 1);
88 0 0 buffer_append(buf, "]", 1);
0 0 buffer_append(buf, "]", 1);
0 0 buffer_append(buf, "]", 1);
0 0 buffer_append(buf, "]", 1);