MCPcopy Create free account
hub / github.com/David-Haim/concurrencpp / test_task_call_operator_test_1

Method test_task_call_operator_test_1

test/source/tests/task_tests.cpp:517–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517void concurrencpp::tests::test_task_call_operator_test_1() {
518 object_observer observer;
519 task t(observer.get_testing_stub());
520
521 t();
522
523 assert_equal(observer.get_execution_count(), 1);
524 assert_equal(observer.get_destruction_count(), 1);
525 assert_false(static_cast<bool>(t));
526}
527
528void concurrencpp::tests::test_task_call_operator_test_2() {
529 task t([] {

Callers

nothing calls this directly

Calls 5

assert_equalFunction · 0.85
assert_falseFunction · 0.85
get_testing_stubMethod · 0.80
get_execution_countMethod · 0.45
get_destruction_countMethod · 0.45

Tested by

no test coverage detected