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

Method test_task_call_operator_test_3

test/source/tests/task_tests.cpp:536–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536void concurrencpp::tests::test_task_call_operator_test_3() {
537 bool a = false, b = false, c = false;
538 int d = 1234567890, e = 0;
539 auto lambda = [](bool& _a, bool* _b, bool _c, int d, int& e) mutable {
540 _a = true;
541 *_b = true;
542 _c = true;
543 e = d;
544 };
545
546 task t(concurrencpp::details::bind(lambda, std::ref(a), &b, c, d, std::ref(e)));
547 t();
548
549 assert_true(a);
550 assert_true(b);
551 assert_false(c);
552 assert_equal(e, d);
553}
554
555void concurrencpp::tests::test_task_call_operator_test_4() {
556 // empty task

Callers

nothing calls this directly

Calls 4

bindFunction · 0.85
assert_trueFunction · 0.85
assert_falseFunction · 0.85
assert_equalFunction · 0.85

Tested by

no test coverage detected