Branch Coverage

deps/libgit2/src/transports/credential.c
Criterion Covered Total %
branch 0 92 0.0


line true false branch
24 0 0 if (cred->credtype == GIT_CREDENTIAL_DEFAULT)
72 0 0 if (c->password) {
88 0 0 assert(cred && username && password);
0 0 assert(cred && username && password);
0 0 assert(cred && username && password);
91 0 0 GIT_ERROR_CHECK_ALLOC(c);
97 0 0 if (!c->username) {
104 0 0 if (!c->password) {
121 0 0 if (c->privatekey) {
128 0 0 if (c->passphrase) {
135 0 0 if (c->publickey) {
160 0 0 if (c->publickey) {
236 0 0 assert(username && cred && privatekey);
0 0 assert(username && cred && privatekey);
0 0 assert(username && cred && privatekey);
239 0 0 GIT_ERROR_CHECK_ALLOC(c);
245 0 0 GIT_ERROR_CHECK_ALLOC(c->username);
248 0 0 GIT_ERROR_CHECK_ALLOC(c->privatekey);
250 0 0 if (publickey) {
252 0 0 GIT_ERROR_CHECK_ALLOC(c->publickey);
255 0 0 if (passphrase) {
257 0 0 GIT_ERROR_CHECK_ALLOC(c->passphrase);
272 0 0 assert(out && username && prompt_callback);
0 0 assert(out && username && prompt_callback);
0 0 assert(out && username && prompt_callback);
275 0 0 GIT_ERROR_CHECK_ALLOC(c);
281 0 0 GIT_ERROR_CHECK_ALLOC(c->username);
293 0 0 assert(username && cred);
0 0 assert(username && cred);
296 0 0 GIT_ERROR_CHECK_ALLOC(c);
302 0 0 GIT_ERROR_CHECK_ALLOC(c->username);
320 0 0 assert(username && cred);
0 0 assert(username && cred);
323 0 0 GIT_ERROR_CHECK_ALLOC(c);
329 0 0 GIT_ERROR_CHECK_ALLOC(c->username);
331 0 0 if (publickey_len > 0) {
333 0 0 GIT_ERROR_CHECK_ALLOC(c->publickey);
350 0 0 assert(cred);
353 0 0 GIT_ERROR_CHECK_ALLOC(c);
367 0 0 assert(cred);
371 0 0 GIT_ERROR_CHECK_ALLOC_ADD(&allocsize, sizeof(git_credential_username), len);
0 0 GIT_ERROR_CHECK_ALLOC_ADD(&allocsize, sizeof(git_credential_username), len);
372 0 0 GIT_ERROR_CHECK_ALLOC_ADD(&allocsize, allocsize, 1);
0 0 GIT_ERROR_CHECK_ALLOC_ADD(&allocsize, allocsize, 1);
374 0 0 GIT_ERROR_CHECK_ALLOC(c);
386 0 0 if (!cred)