MCPcopy Create free account
hub / github.com/git/git / test_finished

Function test_finished

t/helper/test-run-command.c:148–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148static int test_finished(int result, struct strbuf *err, void *cb,
149 void *task_cb)
150{
151 struct testsuite *suite = cb;
152 const char *name = (const char *)task_cb;
153
154 if (result)
155 string_list_append(&suite->failed, name);
156
157 strbuf_addf(err, "%s: '%s'\n", result ? "FAIL" : "SUCCESS", name);
158
159 return 0;
160}
161
162static int test_failed(struct strbuf *out, void *cb, void *task_cb)
163{

Callers

nothing calls this directly

Calls 2

strbuf_addfFunction · 0.85
string_list_appendFunction · 0.50

Tested by

no test coverage detected