MCPcopy Create free account
hub / github.com/apache/trafficserver / check

Method check

include/tscore/TestBox.h:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55};
56
57bool
58TestBox::check(bool result, char const *fmt, ...)
59{
60 if (!result) {
61 static size_t const N = 1 << 16;
62 char buffer[N]; // just stack, go big.
63 va_list ap;
64 va_start(ap, fmt);
65 vsnprintf(buffer, N, fmt, ap);
66 va_end(ap);
67 rprintf(_test, "%s\n", buffer);
68 *_status = REGRESSION_TEST_FAILED;
69 }
70 return result;
71}
72} // namespace

Callers

nothing calls this directly

Calls 1

rprintfFunction · 0.85

Tested by

no test coverage detected