MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / log_assert

Method log_assert

tests/framework/src/doctest.cpp:3286–3300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3284 }
3285
3286 void log_assert(const AssertData& rb) override {
3287 if((!rb.m_failed && !opt.success) || tc->m_no_output)
3288 return;
3289
3290 DOCTEST_LOCK_MUTEX(mutex)
3291
3292 logTestStart();
3293
3294 file_line_to_stream(rb.m_file, rb.m_line, " ");
3295 successOrFailColoredStringToStream(!rb.m_failed, rb.m_at);
3296
3297 fulltext_log_assert_to_stream(s, rb);
3298
3299 log_contexts();
3300 }
3301
3302 void log_message(const MessageData& mb) override {
3303 if(tc->m_no_output)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected