Branch Coverage

header.c
Criterion Covered Total %
branch 58 70 82.8


line true false branch
94 11 35 if (header->order != HEADER_TYPE_NONE) {
103 85 88 if (header->order != HEADER_TYPE_NONE) {
119 8951 276 if (n1[p] == '\0' || n2[p] == '\0') {
8944 7 if (n1[p] == '\0' || n2[p] == '\0') {
122 8881 63 c1 = CONVERT(n1[p]);
1816 7065 c1 = CONVERT(n1[p]);
123 8944 0 c2 = CONVERT(n2[p]);
5830 3114 c2 = CONVERT(n2[p]);
124 2660 6284 if (c1 < c2) {
127 2591 3693 if (c1 > c2) {
132 276 7 if (n1[p] == '\0' && n2[p] != '\0') {
48 228 if (n1[p] == '\0' && n2[p] != '\0') {
135 7 228 if (n1[p] != '\0' && n2[p] == '\0') {
7 0 if (n1[p] != '\0' && n2[p] == '\0') {
143 0 5510 if (type != HEADER_TYPE_NONE && !HEADER_IS_CLASS(h, type)) {
0 0 if (type != HEADER_TYPE_NONE && !HEADER_IS_CLASS(h, type)) {
0 0 if (type != HEADER_TYPE_NONE && !HEADER_IS_CLASS(h, type)) {
153 4787 53 for (j = 0; j < standard_headers_size; ++j) {
155 74 4713 if (header_matches_type_or_name(h, type, name)) {
165 0 0 if (h) {
176 27 7 if (HEADER_IS_ENTITY(h)) {
16 11 if (HEADER_IS_ENTITY(h)) {
181 18 0 if (HEADER_IS_GENERAL(h) ||
16 2 if (HEADER_IS_GENERAL(h) ||
16 0 if (HEADER_IS_GENERAL(h) ||
182 14 2 HEADER_IS_REQUEST(h) ||
14 0 HEADER_IS_REQUEST(h) ||
183 3 11 HEADER_IS_RESPONSE(h)) {
188 53 4 for (j = 0; start[j] != 0; ++j) {
189 2 51 if (h->name[j] == '\0') {
193 5 46 if (tolower(h->name[j]) != start[j]) {
206 372 88 for (j = 0; str[j] != '\0'; ++j) {
207 352 20 if (isalpha(str[j])) {
208 250 102 if (word) {
215 15 5 buf[j] = str[j] == '_' ? '-' : str[j];