| 18 | std::array<int, 10> test_data = {1,2,3,4,5,6,7,8,9,0}; |
| 19 | |
| 20 | cobalt::generator<int> test_data_gen() |
| 21 | { |
| 22 | for (auto & td : test_data) |
| 23 | { |
| 24 | if (&td == &test_data.back()) |
| 25 | co_return td; |
| 26 | else |
| 27 | co_yield td; |
| 28 | } |
| 29 | co_return -1; |
| 30 | } |
| 31 | |
| 32 | cobalt::generator<int> once_gen() |
| 33 | { |
nothing calls this directly
no outgoing calls
no test coverage detected