| 515 | } |
| 516 | |
| 517 | void 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 | |
| 528 | void concurrencpp::tests::test_task_call_operator_test_2() { |
| 529 | task t([] { |
nothing calls this directly
no test coverage detected