Branch Coverage

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


line true false branch
34 76 0 if ((error = git_config_entries_dup(&entries, b->entries)) < 0 ||
58 0 4322 if (git_mutex_lock(&b->values_mutex) < 0) {
67 3498 824 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 6905 1004 while ((error = git_config_next(&entry, it)) == 0)
160 0 6905 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);