We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Conan package trompeloeil/48 and gcc-14.
trompeloeil/48
gcc-14
The code below
#include <catch2/catch_all.hpp> #include <catch2/trompeloeil.hpp> #include <generator> class Mock { public: MAKE_MOCK0(fibonacci,std::generator<int>()); }; TEST_CASE("fibonacci 7") { Mock m; ALLOW_CALL(m, fibonacci()) .CO_YIELD(0) .CO_YIELD(1) .CO_YIELD(1) .CO_YIELD(2) .CO_YIELD(3) .CO_YIELD(5) .CO_YIELD(8) .CO_RETURN() ; REQUIRE_THAT(m.fibonacci(), Catch::Matchers::RangeEquals(std::array{0, 1, 1, 2, 3, 5, 8})); }
produces compile time error:
trompeloeil/coro.hpp:54:56: error: ‘class std::generator’ has no member named ‘await_resume’
Seems that non-awaitable coroutines are not supported (yet).
More than that, I cannot directly mock these functions (like Mock::fibonacci()) with RETURN() statement due to static assertions.
Mock::fibonacci()
RETURN()
Since at this moment std::generator<> is implemented in gcc-14 only, the following implementations might be used for reproduction purposes:
std::generator<>
<experimental/generator>
The text was updated successfully, but these errors were encountered:
Thank you. I will have a look and see what I can do.
Sorry, something went wrong.
No branches or pull requests
Using Conan package
trompeloeil/48
andgcc-14
.The code below
produces compile time error:
Seems that non-awaitable coroutines are not supported (yet).
More than that, I cannot directly mock these functions (like
Mock::fibonacci()
) withRETURN()
statement due to static assertions.Since at this moment
std::generator<>
is implemented in gcc-14 only, the following implementations might be used for reproduction purposes:<experimental/generator>
with MSVC 192The text was updated successfully, but these errors were encountered: