Branch Coverage

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


line true false branch
39 0 2461 if (string) {
66 2618 2183 int error_code = (error_class == GIT_ERROR_OS) ? errno : 0;
70 4801 0 if (fmt) {
72 2618 2183 if (error_class == GIT_ERROR_OS)
76 2618 2183 if (error_class == GIT_ERROR_OS) {
87 2554 64 if (error_code)
90 2554 64 if (error_code)
94 4801 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 2461 1835 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)