Branch Coverage

deps/libgit2/src/errors.c
Criterion Covered Total %
branch 19 40 47.5


line true false branch
39 0 2290 if (string) {
66 2300 2183 int error_code = (error_class == GIT_ERROR_OS) ? errno : 0;
70 4483 0 if (fmt) {
72 2300 2183 if (error_class == GIT_ERROR_OS)
76 2300 2183 if (error_class == GIT_ERROR_OS) {
87 2255 45 if (error_code)
90 2255 45 if (error_code)
94 4483 0 if (!git_buf_oom(buf))
102 0 0 assert(string);
104 0 0 if (!string) {
112 0 0 if (git_buf_oom(buf))
121 2290 1682 if (GIT_GLOBAL->last_error != NULL) {
144 0 2 if (!error_code)
150 0 2 if (error) {
153 0 0 if (state->oom)
169 2 0 if (state && state->error_msg.message) {
0 2 if (state && state->error_msg.message) {
170 0 0 if (state->oom)
184 0 0 if (!state)
187 0 0 if (!state->oom)