Branch Coverage

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


line true false branch
53 0 0 if (s == INVALID_SOCKET)
101 0 0 if ((ret = p_getaddrinfo(st->host, st->port, &hints, &info)) != 0) {
107 0 0 for (p = info; p != NULL; p = p->ai_next) {
110 0 0 if (s == INVALID_SOCKET)
113 0 0 if (connect(s, p->ai_addr, (socklen_t)p->ai_addrlen) == 0)
122 0 0 if (s == INVALID_SOCKET && p == NULL) {
0 0 if (s == INVALID_SOCKET && p == NULL) {
140 0 0 if ((written = p_send(st->s, data, len, flags)) < 0) {
153 0 0 if ((ret = p_recv(st->s, data, len, 0)) < 0)
186 0 0 assert(out && host && port);
0 0 assert(out && host && port);
0 0 assert(out && host && port);
189 0 0 GIT_ERROR_CHECK_ALLOC(st);
192 0 0 GIT_ERROR_CHECK_ALLOC(st->host);
194 0 0 if (port) {
196 0 0 GIT_ERROR_CHECK_ALLOC(st->port);
220 0 0 assert(out && host && port);
0 0 assert(out && host && port);
0 0 assert(out && host && port);
222 0 0 if ((error = git_stream_registry_lookup(&custom, GIT_STREAM_STANDARD)) == 0)
224 0 0 else if (error == GIT_ENOTFOUND)
229 0 0 if (!init) {