Branch Coverage

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


line true false branch
33 76 0 if ((error = git_config_entries_dup(&entries, b->entries)) < 0 ||
57 0 4246 if (git_mutex_lock(&b->values_mutex) < 0) {
66 3460 786 if ((error = (git_config_entries_get(&entry, entries, key))) < 0) {
134 0 966 if (backend == NULL)
154 966 0 if ((error = git_config_entries_new(&entries)) < 0 ||
966 0 if ((error = git_config_entries_new(&entries)) < 0 ||
158 6630 966 while ((error = git_config_next(&entry, it)) == 0)
159 0 6630 if ((error = git_config_entries_dup_entry(entries, entry)) < 0)
162 966 0 if (error < 0) {
163 0 966 if (error != GIT_ITEROVER)
172 0 966 if (error)
182 0 966 GIT_ERROR_CHECK_ALLOC(backend);