Branch Coverage

feersum_utils.c.inc
Criterion Covered Total %
branch 52 78 66.6


line true false branch
134 52 5 for (i=0; i
135 0 52 if (ascii_lower[(unsigned char)a[i]] != ascii_lower[(unsigned char)b[i]]) return 0;
148 11753 1400 for (i=0; i
149 185 11568 if (a[i] != ascii_lower[(unsigned char)b[i]]) return 0;
164 17695 281 while (ptr < end) {
165 3 17692 if (unlikely(*ptr == '%')) goto needs_decode;
176 28 3 for (; ptr < end; ptr++) {
177 9 19 if (unlikely(*ptr == '%') && likely(end - ptr > 2)) {
8 1 if (unlikely(*ptr == '%') && likely(end - ptr > 2)) {
180 7 1 if (likely(c1 != -1 && c2 != -1)) {
7 0 if (likely(c1 != -1 && c2 != -1)) {
198 58 246 if (c->remote_addr) return; // already cached
204 242 0 if (inet_ntop(AF_INET, &in->sin_addr, buf, sizeof(buf))) {
216 4 0 if (inet_ntop(AF_INET6, &in6->sin6_addr, buf, sizeof(buf))) {
245 189 0 if (likely(memcmp(r->method, "GET", 3) == 0))
247 0 0 if (memcmp(r->method, "PUT", 3) == 0)
251 93 1 if (likely(memcmp(r->method, "POST", 4) == 0))
253 1 0 if (memcmp(r->method, "HEAD", 4) == 0)
257 1 0 if (memcmp(r->method, "PATCH", 5) == 0)
261 1 0 if (memcmp(r->method, "DELETE", 6) == 0)
265 1 0 if (memcmp(r->method, "OPTIONS", 7) == 0)
282 512 12 return (r->minor_version == 1) ? psgi_serv11 : psgi_serv10;
289 19 265 if (qpos != NULL) {
303 25 25 if (unlikely(!r->path)) feersum_set_path_and_query(aTHX_ r);
310 0 28 if (unlikely(!r->query)) feersum_set_path_and_query(aTHX_ r);
333 139 13 for (i = 0; i < r->num_headers; i++) {
336 139 0 if (hdr->name && hdr->name_len == name_len &&
351 3 0 if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0, sv) == 0)
353 0 0 if (errno != EINVAL) return -1;
356 0 0 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv) < 0)
359 0 0 fcntl(sv[1], F_SETFL, O_NONBLOCK) < 0 ||
360 0 0 fcntl(sv[0], F_SETFD, FD_CLOEXEC) < 0 ||
376 65 0 if (size > 0)
391 284 0 if (likely(clock_gettime(CLOCK_REALTIME_COARSE, &ts) == 0)) {
399 6 278 if (now == last_generated_time) return;
403 0 278 if (unlikely(!gmtime_r(&now, &tm_buf))) return;
425 0 405 if (len == 0) {
430 566 405 while (len > 0) {
434 566 405 while (t > tmp) {