2
0
mirror of https://github.com/catchorg/Catch2 synced 2026-02-26 05:12:13 +00:00

Allow generators to declare themselves (infinite)

This will be useful later to implement warning on infinitely
running `GENERATE` expressions.
This commit is contained in:
Martin Hořeňovský
2026-02-09 19:05:39 +01:00
parent 0056cd4efb
commit d079ee13ab
31 changed files with 869 additions and 18 deletions

View File

@@ -40,6 +40,8 @@ public:
bool next() override {
return !!std::getline(m_stream, m_line);
}
bool isFinite() const override { return true; }
};
std::string const& LineGenerator::get() const {