Add --warn InfiniteGenerators

This commit is contained in:
Martin Hořeňovský
2026-02-10 09:37:19 +01:00
parent d079ee13ab
commit daadf42a0e
18 changed files with 93 additions and 23 deletions
@@ -413,9 +413,10 @@ TEST_CASE( "Parsing warnings", "[cli][warnings]" ) {
SECTION( "Combining multiple warnings" ) {
REQUIRE( cli.parse( { "test",
"--warn", "NoAssertions",
"--warn", "UnmatchedTestSpec" } ) );
"--warn", "UnmatchedTestSpec",
"--warn", "InfiniteGenerators" } ) );
REQUIRE( config.warnings == ( WarnAbout::NoAssertions | WarnAbout::UnmatchedTestSpec ) );
REQUIRE( config.warnings == ( WarnAbout::NoAssertions | WarnAbout::UnmatchedTestSpec | WarnAbout::InfiniteGenerator ) );
}
}