Branch Coverage

deps/libgit2/deps/pcre/pcre_get.c
Criterion Covered Total %
branch 0 74 0.0


line true false branch
85 0 0 if ((rc = pcre_fullinfo(code, NULL, PCRE_INFO_NAMECOUNT, &top)) != 0)
87 0 0 if (top <= 0) return PCRE_ERROR_NOSUBSTRING;
89 0 0 if ((rc = pcre_fullinfo(code, NULL, PCRE_INFO_NAMEENTRYSIZE, &entrysize)) != 0)
91 0 0 if ((rc = pcre_fullinfo(code, NULL, PCRE_INFO_NAMETABLE, &nametable)) != 0)
116 0 0 while (top > bot)
122 0 0 if (c == 0) return GET2(entry, 0);
123 0 0 if (c > 0) bot = mid + 1; else top = mid;
168 0 0 if ((rc = pcre_fullinfo(code, NULL, PCRE_INFO_NAMECOUNT, &top)) != 0)
170 0 0 if (top <= 0) return PCRE_ERROR_NOSUBSTRING;
172 0 0 if ((rc = pcre_fullinfo(code, NULL, PCRE_INFO_NAMEENTRYSIZE, &entrysize)) != 0)
174 0 0 if ((rc = pcre_fullinfo(code, NULL, PCRE_INFO_NAMETABLE, &nametable)) != 0)
200 0 0 while (top > bot)
206 0 0 if (c == 0)
210 0 0 while (first > nametable)
212 0 0 if (STRCMP_UC_UC((pcre_uchar *)stringname,
216 0 0 while (last < lastentry)
218 0 0 if (STRCMP_UC_UC((pcre_uchar *)stringname,
234 0 0 if (c > 0) bot = mid + 1; else top = mid;
286 0 0 if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0)
0 0 if ((re->options & PCRE_DUPNAMES) == 0 && (re->flags & PCRE_JCHANGED) == 0)
298 0 0 if (entrysize <= 0) return entrysize;
299 0 0 for (entry = (pcre_uchar *)first; entry <= (pcre_uchar *)last; entry += entrysize)
302 0 0 if (n < stringcount && ovector[n*2] >= 0) return n;
0 0 if (n < stringcount && ovector[n*2] >= 0) return n;
352 0 0 if (stringnumber < 0 || stringnumber >= stringcount)
0 0 if (stringnumber < 0 || stringnumber >= stringcount)
356 0 0 if (size < yield + 1) return PCRE_ERROR_NOMEMORY;
410 0 0 if (n <= 0) return n;
463 0 0 for (i = 0; i < double_count; i += 2)
466 0 0 if (ovector[i+1] > ovector[i]) size += IN_UCHARS(ovector[i+1] - ovector[i]);
470 0 0 if (stringlist == NULL) return PCRE_ERROR_NOMEMORY;
481 0 0 for (i = 0; i < double_count; i += 2)
483 0 0 int len = (ovector[i+1] > ovector[i])? (ovector[i+1] - ovector[i]) : 0;
565 0 0 if (stringnumber < 0 || stringnumber >= stringcount)
0 0 if (stringnumber < 0 || stringnumber >= stringcount)
570 0 0 if (substring == NULL) return PCRE_ERROR_NOMEMORY;
630 0 0 if (n <= 0) return n;