Branch Coverage

deps/libgit2/src/libgit2/errors.c
Criterion Covered Total %
branch 20 40 50.0


line true false branch
45 0 2752 if (string) {
72 2008 2246 int error_code = (error_class == GIT_ERROR_OS) ? errno : 0;
76 4254 0 if (fmt) {
78 2008 2246 if (error_class == GIT_ERROR_OS)
82 2008 2246 if (error_class == GIT_ERROR_OS) {
93 1938 70 if (error_code)
96 1938 70 if (error_code)
100 4254 0 if (!git_str_oom(buf))
108 0 0 GIT_ASSERT_ARG(string);
113 0 0 if (git_str_oom(buf))
122 2752 1817 if (GIT_THREADSTATE->last_error != NULL) {
136 0 67 if (!git_libgit2_init_count())
149 0 2 if (!error_code)
155 0 2 if (error) {
158 0 0 if (state->oom)
174 2 0 if (state && state->error_msg.message) {
0 2 if (state && state->error_msg.message) {
175 0 0 if (state->oom)
189 0 0 if (!state)
192 0 0 if (!state->oom)