Branch Coverage

deps/libgit2/src/config_mem.c
Criterion Covered Total %
branch 0 28 0.0


line true false branch
50 0 0 if (current_section) {
59 0 0 for (c = var_name; *c; c++)
62 0 0 if (git_buf_oom(&buf))
66 0 0 GIT_ERROR_CHECK_ALLOC(entry);
68 0 0 entry->value = var_value ? git__strdup(var_value) : NULL;
72 0 0 if ((result = git_config_entries_append(parse_data->entries, entry)) < 0)
87 0 0 if ((error = git_config_parser_init(&parser, "in-memory", memory_backend->cfg.ptr,
93 0 0 if ((error = git_config_parse(&parser, NULL, read_variable_cb, NULL, NULL, &parse_data)) < 0)
115 0 0 if ((error = git_config_entries_dup(&entries, memory_backend->entries)) < 0)
118 0 0 if ((error = git_config_entries_iterator_new(iter, entries)) < 0)
177 0 0 if (backend == NULL)
190 0 0 GIT_ERROR_CHECK_ALLOC(backend);
192 0 0 if (git_config_entries_new(&backend->entries) < 0) {
197 0 0 if (git_buf_set(&backend->cfg, cfg, len) < 0) {