Branch Coverage

deps/libgit2/src/pqueue.c
Criterion Covered Total %
branch 20 32 62.5


line true false branch
24 112 0 if (!error) {
29 0 112 if ((flags & GIT_PQUEUE_FIXED_SIZE) && init_size > 0)
0 0 if ((flags & GIT_PQUEUE_FIXED_SIZE) && init_size > 0)
41 168 79 while (el > 0) {
44 157 11 if (pq->_cmp(parent, kid) <= 0)
63 130 37 if ((kid = git_vector_get(pq, kid_el)) == NULL)
72 34 3 if (pq->_cmp(parent, kid) <= 0)
87 0 255 if ((pq->flags & GIT_PQUEUE_FIXED_SIZE) != 0 &&
0 0 if ((pq->flags & GIT_PQUEUE_FIXED_SIZE) != 0 &&
92 0 0 if (!pq->_cmp || pq->_cmp(item, git_vector_get(pq, 0)) <= 0)
0 0 if (!pq->_cmp || pq->_cmp(item, git_vector_get(pq, 0)) <= 0)
98 255 0 if (!(error = git_vector_insert(pq, item)) && pq->_cmp)
236 19 if (!(error = git_vector_insert(pq, item)) && pq->_cmp)
108 24 235 if (!pq->_cmp) {
114 168 91 if (git_pqueue_size(pq) > 1 && pq->_cmp) {
164 4 if (git_pqueue_size(pq) > 1 && pq->_cmp) {