MCPcopy Create free account
hub / github.com/Compaile/ctrack / log_contexts

Method log_contexts

test/doctest.h:5953–5965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5951 void test_case_skipped(const TestCaseData&) override {}
5952
5953 void log_contexts(std::ostringstream& s) {
5954 int num_contexts = get_num_active_contexts();
5955 if(num_contexts) {
5956 auto contexts = get_active_contexts();
5957
5958 s << " logged: ";
5959 for(int i = 0; i < num_contexts; ++i) {
5960 s << (i == 0 ? "" : " ");
5961 contexts[i]->stringify(&s);
5962 s << std::endl;
5963 }
5964 }
5965 }
5966 };
5967
5968 DOCTEST_REGISTER_REPORTER("junit", 0, JUnitReporter);

Callers

nothing calls this directly

Calls 1

stringifyMethod · 0.80

Tested by

no test coverage detected