| 95 | } |
| 96 | |
| 97 | void concurrencpp::tests::test_runtime_destructor() { |
| 98 | std::shared_ptr<concurrencpp::executor> executors[7]; |
| 99 | |
| 100 | { |
| 101 | concurrencpp::runtime runtime; |
| 102 | executors[0] = runtime.inline_executor(); |
| 103 | executors[1] = runtime.thread_pool_executor(); |
| 104 | executors[2] = runtime.background_executor(); |
| 105 | executors[3] = runtime.thread_executor(); |
| 106 | executors[4] = runtime.make_worker_thread_executor(); |
| 107 | executors[5] = runtime.make_manual_executor(); |
| 108 | executors[6] = runtime.make_executor<dummy_executor>("dummy_executor", 1, 4.4f); |
| 109 | } |
| 110 | |
| 111 | for (auto& executor : executors) { |
| 112 | assert_true(executor->shutdown_requested()); |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | void concurrencpp::tests::test_runtime_version() { |
| 117 | auto version = concurrencpp::runtime::version(); |
nothing calls this directly
no test coverage detected