MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / helper_after_test

Function helper_after_test

subprojects/llama.cpp/tests/test-opt.cpp:178–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178static void helper_after_test(
179 enum ggml_opt_optimizer_type optim,
180 const char * func, const bool high_level, const std::string options,
181 const std::string subtest, const bool subtest_ok, int & ntest, int & npass) {
182 printf(" %s(high_level=%s%s, subtest=%s, optimizer=%s): ",
183 func, high_level ? "yes" : "no", options.c_str(), subtest.c_str(), ggml_opt_optimizer_name(optim));
184 print_ok(subtest_ok);
185 if (subtest_ok)
186 npass++;
187 ntest++;
188}
189
190static void print_ok(const char * func, bool subtest_ok, int & npass, int & ntest, const char * args = "") {
191 printf(" %s(%s): ", func, args);

Calls 2

ggml_opt_optimizer_nameFunction · 0.85
print_okFunction · 0.85

Tested by

no test coverage detected