Branch Coverage

deps/libgit2/src/libgit2/transports/git.c
Criterion Covered Total %
branch 0 62 0.0


line true false branch
47 0 0 if (delim == NULL) {
53 0 0 if (repo[1] == '~')
57 0 0 if (delim == NULL)
68 0 0 if (git_str_oom(request))
79 0 0 if ((error = gen_proto(&request, s->cmd, s->url)) < 0)
82 0 0 if ((error = git_stream__write_full(s->io, request.ptr, request.size, 0)) < 0)
104 0 0 if (!s->sent_command && (error = send_command(s)) < 0)
0 0 if (!s->sent_command && (error = send_command(s)) < 0)
109 0 0 if ((error = gitno_recv(&buf)) < 0)
125 0 0 if (!s->sent_command && (error = send_command(s)) < 0)
0 0 if (!s->sent_command && (error = send_command(s)) < 0)
136 0 0 if (!stream)
160 0 0 if (!stream)
164 0 0 GIT_ERROR_CHECK_ALLOC(s);
174 0 0 if (!s->url) {
179 0 0 if ((git_socket_stream_new(&s->io, host, port)) < 0)
182 0 0 GIT_ERROR_CHECK_VERSION(s->io, GIT_STREAM_VERSION, "git_stream");
201 0 0 if (!git__prefixcmp(url, prefix_git))
204 0 0 if ((error = git_net_url_parse(&urldata, url)) < 0)
208 0 0 port = urldata.port ? urldata.port : GIT_DEFAULT_PORT;
214 0 0 if (error < 0) {
220 0 0 if ((error = git_stream_connect(s->io)) < 0) {
237 0 0 if (t->current_stream) {
257 0 0 if (!git__prefixcmp(url, prefix_git))
260 0 0 if ((error = git_net_url_parse(&urldata, url)) < 0)
267 0 0 if (error < 0) {
274 0 0 if ((error = git_stream_connect(s->io)) < 0)
289 0 0 if (t->current_stream) {
328 0 0 GIT_ASSERT(!t->current_stream);
348 0 0 if (!out)
352 0 0 GIT_ERROR_CHECK_ALLOC(t);