Branch Coverage

utf8_valid.h
Criterion Covered Total %
branch 22 22 100.0


line true false branch
54 9075 881 for (size_t i = 0; i < len; i++) {
60 2968 1064 return i > 0 ? i : 1;
71 15090 1153 for (size_t i = 0; i < len; i++) {
73 44 15046 if (state == UTF8_DFA_ACCEPT)
75 7127 7919 else if (state == UTF8_DFA_REJECT)
134 871 13254 while (len >= 16) {
135 712 159 if (state != UTF8_DFA_ACCEPT || !utf8_check_ascii_block16(s))
343 369 if (state != UTF8_DFA_ACCEPT || !utf8_check_ascii_block16(s))
142 2639 10615 if (state == UTF8_DFA_ACCEPT) {
143 2299 340 if (cursor)
148 8280 2335 if (cursor)