Branch Coverage

deps/libgit2/src/util/utf8.c
Criterion Covered Total %
branch 7 38 18.4


line true false branch
62 0 522 if (!length)
65 522 0 if (str_len > 0 && length > str_len)
0 522 if (str_len > 0 && length > str_len)
68 0 522 for (i = 1; i < length; i++) {
69 0 0 if ((str[i] & 0xC0) != 0x80)
84 0 0 if ((length = utf8_charlen(str, str_len)) < 0)
93 0 0 if (uc < 0x80) uc = -1;
98 0 0 if (uc < 0x800 || (uc >= 0xD800 && uc < 0xE000) ||
0 0 if (uc < 0x800 || (uc >= 0xD800 && uc < 0xE000) ||
0 0 if (uc < 0x800 || (uc >= 0xD800 && uc < 0xE000) ||
0 0 if (uc < 0x800 || (uc >= 0xD800 && uc < 0xE000) ||
99 0 0 (uc >= 0xFDD0 && uc < 0xFDF0)) uc = -1;
104 0 0 if (uc < 0x10000 || uc >= 0x110000) uc = -1;
0 0 if (uc < 0x10000 || uc >= 0x110000) uc = -1;
110 0 0 if ((uc & 0xFFFF) >= 0xFFFE)
122 0 0 while (offset < str_len) {
125 0 0 if (length < 0)
140 522 38 while (offset < str_len) {
143 0 522 if (length < 0)