Branch Coverage

deps/libgit2/src/libgit2/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 GIT_ASSERT_ARG(cred);
89 0 0 GIT_ASSERT_ARG(username);
90 0 0 GIT_ASSERT_ARG(password);
93 0 0 GIT_ERROR_CHECK_ALLOC(c);
99 0 0 if (!c->username) {
106 0 0 if (!c->password) {
123 0 0 if (c->privatekey) {
130 0 0 if (c->passphrase) {
137 0 0 if (c->publickey) {
162 0 0 if (c->publickey) {
238 0 0 GIT_ASSERT_ARG(username);
239 0 0 GIT_ASSERT_ARG(cred);
240 0 0 GIT_ASSERT_ARG(privatekey);
243 0 0 GIT_ERROR_CHECK_ALLOC(c);
249 0 0 GIT_ERROR_CHECK_ALLOC(c->username);
252 0 0 GIT_ERROR_CHECK_ALLOC(c->privatekey);
254 0 0 if (publickey) {
256 0 0 GIT_ERROR_CHECK_ALLOC(c->publickey);
259 0 0 if (passphrase) {
261 0 0 GIT_ERROR_CHECK_ALLOC(c->passphrase);
276 0 0 GIT_ASSERT_ARG(out);
277 0 0 GIT_ASSERT_ARG(username);
278 0 0 GIT_ASSERT_ARG(prompt_callback);
281 0 0 GIT_ERROR_CHECK_ALLOC(c);
287 0 0 GIT_ERROR_CHECK_ALLOC(c->username);
299 0 0 GIT_ASSERT_ARG(username);
300 0 0 GIT_ASSERT_ARG(cred);
303 0 0 GIT_ERROR_CHECK_ALLOC(c);
309 0 0 GIT_ERROR_CHECK_ALLOC(c->username);
327 0 0 GIT_ASSERT_ARG(username);
328 0 0 GIT_ASSERT_ARG(cred);
331 0 0 GIT_ERROR_CHECK_ALLOC(c);
337 0 0 GIT_ERROR_CHECK_ALLOC(c->username);
339 0 0 if (publickey_len > 0) {
341 0 0 GIT_ERROR_CHECK_ALLOC(c->publickey);
358 0 0 GIT_ASSERT_ARG(cred);
361 0 0 GIT_ERROR_CHECK_ALLOC(c);
375 0 0 GIT_ASSERT_ARG(cred);
379 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);
380 0 0 GIT_ERROR_CHECK_ALLOC_ADD(&allocsize, allocsize, 1);
0 0 GIT_ERROR_CHECK_ALLOC_ADD(&allocsize, allocsize, 1);
382 0 0 GIT_ERROR_CHECK_ALLOC(c);
394 0 0 if (!cred)