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 96 if (header->order != HEADER_TYPE_NONE) {
119 9347 280 if (n1[p] == '\0' || n2[p] == '\0') {
9340 7 if (n1[p] == '\0' || n2[p] == '\0') {
122 9277 63 c1 = CONVERT(n1[p]);
1816 7461 c1 = CONVERT(n1[p]);
123 9340 0 c2 = CONVERT(n2[p]);
6210 3130 c2 = CONVERT(n2[p]);
124 2868 6472 if (c1 < c2) {
127 2759 3713 if (c1 > c2) {
132 280 7 if (n1[p] == '\0' && n2[p] != '\0') {
48 232 if (n1[p] == '\0' && n2[p] != '\0') {
135 7 232 if (n1[p] != '\0' && n2[p] == '\0') {
7 0 if (n1[p] != '\0' && n2[p] == '\0') {
143 0 5890 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 5163 61 for (j = 0; j < standard_headers_size; ++j) {
155 74 5089 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 396 96 for (j = 0; str[j] != '\0'; ++j) {
207 376 20 if (isalpha(str[j])) {
208 266 110 if (word) {
215 15 5 buf[j] = str[j] == '_' ? '-' : str[j];