Branch Coverage

deps/libgit2/src/libgit2/fetch.c
Criterion Covered Total %
branch 0 64 0.0


line true false branch
27 0 0 if (git_reference_name_is_valid(&valid, head->name) < 0)
30 0 0 if (!valid)
33 0 0 if (tagopt == GIT_REMOTE_DOWNLOAD_TAGS_ALL) {
38 0 0 if (git_refspec_src_matches(tagspec, head->name))
42 0 0 if (!match && git_remote__matching_refspec(remote, head->name))
0 0 if (!match && git_remote__matching_refspec(remote, head->name))
45 0 0 if (!match)
57 0 0 if (git_repository_odb__weakptr(&odb, remote->repo) < 0)
60 0 0 git_vector_foreach(&remote->refs, i, head) {
62 0 0 if (git_odb_exists(odb, &head->oid))
76 0 0 GIT_ERROR_CHECK_ALLOC(oid_head);
80 0 0 if (spec->dst) {
82 0 0 GIT_ERROR_CHECK_ALLOC(oid_head->name);
104 0 0 if (opts && opts->download_tags != GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED)
0 0 if (opts && opts->download_tags != GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED)
108 0 0 if ((error = git_refspec__parse(&tagspec, GIT_REFSPEC_TAGS, true)) < 0)
117 0 0 if (remote->active_refspecs.length == 0) {
118 0 0 if ((error = git_refspec__parse(&head, "HEAD", true)) < 0)
124 0 0 if (error < 0)
128 0 0 if ((error = git_repository_odb__weakptr(&odb, remote->repo)) < 0)
131 0 0 if ((error = git_remote_ls((const git_remote_head ***)&heads, &heads_len, remote)) < 0 ||
0 0 if ((error = git_remote_ls((const git_remote_head ***)&heads, &heads_len, remote)) < 0 ||
136 0 0 for (i = 0; i < heads_len; i++) {
137 0 0 if ((error = maybe_want(remote, heads[i], &tagspec, tagopt)) < 0)
142 0 0 git_vector_foreach(&remote->active_refspecs, i, spec) {
143 0 0 if (!git_oid__is_hexstr(spec->src))
146 0 0 if (!(remote_caps & oid_mask)) {
152 0 0 if ((error = maybe_want_oid(remote, spec)) < 0)
175 0 0 if (filter_wants(remote, opts) < 0)
179 0 0 if (!remote->need_pack)
196 0 0 if (!remote->need_pack)
204 0 0 GIT_INIT_STRUCTURE_FROM_TEMPLATE(