| 559 | } |
| 560 | |
| 561 | void concurrencpp::tests::test_task_call_operator_test_5() { |
| 562 | // a croutine |
| 563 | object_observer observer; |
| 564 | const auto handle = coro_function({}, observer.get_testing_stub()); |
| 565 | |
| 566 | assert_equal(observer.get_execution_count(), 0); |
| 567 | assert_equal(observer.get_destruction_count(), 0); |
| 568 | |
| 569 | task t(handle); |
| 570 | t(); |
| 571 | |
| 572 | assert_equal(observer.get_execution_count(), 1); |
| 573 | assert_equal(observer.get_destruction_count(), 1); |
| 574 | } |
| 575 | |
| 576 | void concurrencpp::tests::test_task_call_operator() { |
| 577 | test_task_call_operator_test_1(); |
nothing calls this directly
no test coverage detected