Branch Coverage

deps/libgit2/src/libgit2/xdiff/xhistogram.c
Criterion Covered Total %
branch 0 94 0.0


line true false branch
109 0 0 for (ptr = LINE_END(1); line1 <= ptr; ptr--) {
115 0 0 while (rec) {
116 0 0 if (CMP(index, 1, rec->ptr, 1, ptr)) {
134 0 0 if (chain_len == index->max_chain_length)
141 0 0 if (!(rec = xdl_cha_alloc(&index->rcha)))
164 0 0 for (; rec; rec = rec->next) {
165 0 0 if (rec->cnt > index->cnt) {
166 0 0 if (!index->has_common)
172 0 0 if (!CMP(index, 1, as, 2, b_ptr))
184 0 0 while (line1 < as && line2 < bs
0 0 while (line1 < as && line2 < bs
185 0 0 && CMP(index, 1, as - 1, 2, bs - 1)) {
188 0 0 if (1 < rc)
191 0 0 while (ae < LINE_END(1) && be < LINE_END(2)
0 0 while (ae < LINE_END(1) && be < LINE_END(2)
192 0 0 && CMP(index, 1, ae + 1, 2, be + 1)) {
195 0 0 if (1 < rc)
199 0 0 if (b_next <= be)
201 0 0 if (lcs->end1 - lcs->begin1 < ae - as || rc < index->cnt) {
0 0 if (lcs->end1 - lcs->begin1 < ae - as || rc < index->cnt) {
209 0 0 if (np == 0)
212 0 0 while (np <= ae) {
214 0 0 if (np == 0) {
220 0 0 if (should_break)
270 0 0 if (!(index.records = (struct record **) xdl_malloc(sz)))
276 0 0 if (!(index.line_map = (struct record **) xdl_malloc(sz)))
282 0 0 if (!(index.next_ptrs = (unsigned int *) xdl_malloc(sz)))
287 0 0 if (xdl_cha_init(&index.rcha, sizeof(struct record), count1 / 4 + 1) < 0)
293 0 0 if (scanA(&index, line1, count1))
298 0 0 for (b_ptr = line2; b_ptr <= LINE_END(2); )
301 0 0 if (index.has_common && index.max_chain_length < index.cnt)
0 0 if (index.has_common && index.max_chain_length < index.cnt)
320 0 0 if (count1 <= 0 && count2 <= 0)
0 0 if (count1 <= 0 && count2 <= 0)
323 0 0 if (LINE_END(1) >= MAX_PTR)
326 0 0 if (!count1) {
327 0 0 while(count2--)
330 0 0 } else if (!count2) {
331 0 0 while(count1--)
338 0 0 if (lcs_found < 0)
340 0 0 else if (lcs_found)
343 0 0 if (lcs.begin1 == 0 && lcs.begin2 == 0) {
0 0 if (lcs.begin1 == 0 && lcs.begin2 == 0) {
344 0 0 while (count1--)
346 0 0 while (count2--)
353 0 0 if (result)
375 0 0 if (xdl_prepare_env(file1, file2, xpp, env) < 0)