Branch Coverage

include/horus_encode.h
Criterion Covered Total %
branch 46 70 65.7


line true false branch
53 1408 88 for (i = 0; i < 16; i++) {
69 3425 0 return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F');
1249 2176 return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F');
1109 140 return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F');
1 1108 return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F');
141 0 return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F');
140 1 return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F');
74 1713 107 for (i = 0; i < nhex; i += 2) {
75 1712 1 if (!horus_is_hex(src[i]) || !horus_is_hex(src[i+1]))
0 1712 if (!horus_is_hex(src[i]) || !horus_is_hex(src[i+1]))
91 65 13 for (i = 0; i + 2 < 16; i += 3) {
129 30 6 for (i = 0; i + 3 < len; i += 4) {
139 6 0 if (i + 1 < len) {
155 26 1 for (i = 0; i < 26; i++) {
160 39 25 while (bits_have < bits_needed && byte_pos < 16) {
38 1 while (bits_have < bits_needed && byte_pos < 16) {
163 13 25 if (bits_to_take > bits_left_in_byte)
169 16 22 if (bit_pos >= 8) {
175 1 25 if (bits_have < bits_needed) {
204 0 0 for (i = 0; i < len && byte_pos < 16; i++) {
0 0 for (i = 0; i < len && byte_pos < 16; i++) {
207 0 0 while (bits_left > 0 && byte_pos < 16) {
0 0 while (bits_left > 0 && byte_pos < 16) {
209 0 0 if (bits_left >= space) {
230 26 1 for (i = 0; i < 26; i++) {
235 39 25 while (bits_have < bits_needed && byte_pos < 16) {
38 1 while (bits_have < bits_needed && byte_pos < 16) {
238 13 25 if (bits_to_take > bits_left_in_byte)
244 16 22 if (bit_pos >= 8) {
249 1 25 if (bits_have < bits_needed) {
290 0 0 for (i = 0; i < len && byte_pos < 16; i++) {
0 0 for (i = 0; i < len && byte_pos < 16; i++) {
293 0 0 while (bits_left > 0 && byte_pos < 16) {
0 0 while (bits_left > 0 && byte_pos < 16) {
295 0 0 if (bits_left >= space) {