Branch Coverage

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


line true false branch
26 0 0 if (!git_reference_is_valid_name(head->name))
29 0 0 if (tagopt == GIT_REMOTE_DOWNLOAD_TAGS_ALL) {
34 0 0 if (git_refspec_src_matches(tagspec, head->name))
38 0 0 if (!match && git_remote__matching_refspec(remote, head->name))
0 0 if (!match && git_remote__matching_refspec(remote, head->name))
41 0 0 if (!match)
45 0 0 if (git_odb_exists(odb, &head->oid)) {
63 0 0 if (opts && opts->download_tags != GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED)
0 0 if (opts && opts->download_tags != GIT_REMOTE_DOWNLOAD_TAGS_UNSPECIFIED)
67 0 0 if ((error = git_refspec__parse(&tagspec, GIT_REFSPEC_TAGS, true)) < 0)
76 0 0 if (remote->active_refspecs.length == 0) {
77 0 0 if ((error = git_refspec__parse(&head, "HEAD", true)) < 0)
83 0 0 if (error < 0)
87 0 0 if (git_repository_odb__weakptr(&odb, remote->repo) < 0)
90 0 0 if (git_remote_ls((const git_remote_head ***)&heads, &heads_len, remote) < 0)
93 0 0 for (i = 0; i < heads_len; i++) {
94 0 0 if ((error = maybe_want(remote, heads[i], odb, &tagspec, tagopt)) < 0)
115 0 0 if (filter_wants(remote, opts) < 0) {
121 0 0 if (!remote->need_pack)
140 0 0 if (!remote->need_pack)
143 0 0 if (callbacks) {
153 0 0 GIT_INIT_STRUCTURE_FROM_TEMPLATE(