MCPcopy Create free account
hub / github.com/bshoshany/thread-pool / check

Function check

tests/BS_thread_pool_test.cpp:465–477  ·  view source on GitHub ↗

* @brief Check if a condition is met, report the result, and keep count of the total number of successes and failures. * * @param condition The condition to check. */

Source from the content-addressed store, hash-verified

463 * @param condition The condition to check.
464 */
465void check(const bool condition)
466{
467 if (condition)
468 {
469 logln_ansi(ansi_success, "-> passed.");
470 ++test_results::tests_succeeded;
471 }
472 else
473 {
474 logln_ansi(ansi_error, "-> FAILED!");
475 ++test_results::tests_failed;
476 }
477}
478
479/**
480 * @brief Check if the expected result has been obtained, report the result, and keep count of the total number of successes and failures.

Callers 15

check_resetFunction · 0.85
check_taskFunction · 0.85
check_member_functionFunction · 0.85
check_callablesFunction · 0.85
check_waitFunction · 0.85

Calls 2

logln_ansiFunction · 0.85
log_ansiFunction · 0.85

Tested by

no test coverage detected