Branch Coverage

deps/libgit2/src/libgit2/streams/registry.c
Criterion Covered Total %
branch 1 24 4.1


line true false branch
33 0 87 if (git_rwlock_init(&stream_registry.lock) < 0)
43 0 0 if (src)
54 0 0 GIT_ASSERT_ARG(out);
68 0 0 if (git_rwlock_rdlock(&stream_registry.lock) < 0) {
73 0 0 if (target->init) {
84 0 0 GIT_ASSERT(!registration || registration->init);
0 0 GIT_ASSERT(!registration || registration->init);
86 0 0 GIT_ERROR_CHECK_VERSION(registration, GIT_STREAM_VERSION, "stream_registration");
88 0 0 if (git_rwlock_wrlock(&stream_registry.lock) < 0) {
93 0 0 if ((type & GIT_STREAM_STANDARD) == GIT_STREAM_STANDARD)
96 0 0 if ((type & GIT_STREAM_TLS) == GIT_STREAM_TLS)
109 0 0 if (ctor) {