Branch Coverage

deps/libgit2/src/strarray.c
Criterion Covered Total %
branch 3 18 16.6


line true false branch
16 0 0 assert(tgt && src);
0 0 assert(tgt && src);
20 0 0 if (!src->count)
24 0 0 GIT_ERROR_CHECK_ALLOC(tgt->strings);
26 0 0 for (i = 0; i < src->count; ++i) {
27 0 0 if (!src->strings[i])
31 0 0 if (!tgt->strings[tgt->count]) {
47 0 28 if (array == NULL)
50 13 28 for (i = 0; i < array->count; ++i)