Branch Coverage

deps/libgit2/src/global.c
Criterion Covered Total %
branch 7 20 35.0


line true false branch
54 516 0 assert(count <= (int) ARRAY_SIZE(git__shutdown_callbacks) && count > 0);
0 516 assert(count <= (int) ARRAY_SIZE(git__shutdown_callbacks) && count > 0);
60 0 0 if (!st)
79 860 86 for (i = 0; i < ARRAY_SIZE(git__init_callbacks); i++)
80 0 860 if ((ret = git__init_callbacks[i]()) != 0)
93 0 0 for (pos = git_atomic_get(&git__n_shutdown_callbacks);
100 0 0 if (cb != NULL)
333 0 86 if ((ret = git_atomic_inc(&git__n_inits)) != 1)
336 0 86 if ((ret = init_common()) < 0)
347 0 0 if ((ret = git_atomic_dec(&git__n_inits)) == 0) {