| 11 | |
| 12 | namespace concurrencpp::tests { |
| 13 | struct dummy_executor : public concurrencpp::executor { |
| 14 | bool shutdown_requested_flag = false; |
| 15 | |
| 16 | dummy_executor(const char* name, int, float) : executor(name) {} |
| 17 | |
| 18 | void enqueue(concurrencpp::task) override {} |
| 19 | void enqueue(std::span<concurrencpp::task>) override {} |
| 20 | |
| 21 | int max_concurrency_level() const noexcept override { |
| 22 | return 0; |
| 23 | } |
| 24 | |
| 25 | bool shutdown_requested() const noexcept override { |
| 26 | return shutdown_requested_flag; |
| 27 | } |
| 28 | |
| 29 | void shutdown() noexcept override { |
| 30 | shutdown_requested_flag = true; |
| 31 | } |
| 32 | }; |
| 33 | } // namespace concurrencpp::tests |
| 34 | |
| 35 | void concurrencpp::tests::test_runtime_constructor() { |
nothing calls this directly
no outgoing calls
no test coverage detected