Branch Coverage

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


line true false branch
24 113 0 if (!error) {
29 0 113 if ((flags & GIT_PQUEUE_FIXED_SIZE) && init_size > 0)
0 0 if ((flags & GIT_PQUEUE_FIXED_SIZE) && init_size > 0)
41 168 81 while (el > 0) {
44 157 11 if (pq->_cmp(parent, kid) <= 0)
63 132 35 if ((kid = git_vector_get(pq, kid_el)) == NULL)
72 32 3 if (pq->_cmp(parent, kid) <= 0)
87 0 257 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 257 0 if (!(error = git_vector_insert(pq, item)) && pq->_cmp)
238 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) {