Branch Coverage

deps/libgit2/src/libgit2/strarray.c
Criterion Covered Total %
branch 6 18 33.3


line true false branch
16 0 4 GIT_ASSERT_ARG(tgt);
17 0 4 GIT_ASSERT_ARG(src);
21 4 0 if (!src->count)
25 0 0 GIT_ERROR_CHECK_ALLOC(tgt->strings);
27 0 0 for (i = 0; i < src->count; ++i) {
28 0 0 if (!src->strings[i])
32 0 0 if (!tgt->strings[tgt->count]) {
48 0 36 if (array == NULL)
51 13 36 for (i = 0; i < array->count; ++i)