Branch Coverage

deps/libgit2/src/libgit2/config_snapshot.c
Criterion Covered Total %
branch 14 24 58.3


line true false branch
34 106 0 if ((error = git_config_entries_dup(&entries, b->entries)) < 0 ||
58 0 4282 if (git_mutex_lock(&b->values_mutex) < 0) {
67 3466 816 if ((error = (git_config_entries_get(&entry, entries, key))) < 0) {
135 0 1004 if (backend == NULL)
155 1004 0 if ((error = git_config_entries_new(&entries)) < 0 ||
1004 0 if ((error = git_config_entries_new(&entries)) < 0 ||
159 7411 1004 while ((error = git_config_next(&entry, it)) == 0)
160 0 7411 if ((error = git_config_entries_dup_entry(entries, entry)) < 0)
163 1004 0 if (error < 0) {
164 0 1004 if (error != GIT_ITEROVER)
173 0 1004 if (error)
183 0 1004 GIT_ERROR_CHECK_ALLOC(backend);