mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-25 07:55:40 +02:00
Forbid deducing reference types for m_predicate in FilterGenerator (#3005)
Forbid deducing reference types for m_predicate in FilterGenerator to prevent dangling references. This is needed for out-of-line predicates to work correctly instead of undefined behavior or crashes. --------- Co-authored-by: Tek Mate <mate.tek@evosoft.com>
This commit is contained in:
@@ -152,6 +152,7 @@ at AssertionHandler.tests.cpp:<line number>
|
||||
<testCase name="Generators internals/Filter generator/Simple filtering" duration="{duration}"/>
|
||||
<testCase name="Generators internals/Filter generator/Filter out multiple elements at the start and end" duration="{duration}"/>
|
||||
<testCase name="Generators internals/Filter generator/Throws on construction if it can't get initial element" duration="{duration}"/>
|
||||
<testCase name="Generators internals/Filter generator/Out-of-line predicates are copied into the generator" duration="{duration}"/>
|
||||
<testCase name="Generators internals/Take generator" duration="{duration}"/>
|
||||
<testCase name="Generators internals/Take generator/Take less" duration="{duration}"/>
|
||||
<testCase name="Generators internals/Take generator/Take more" duration="{duration}"/>
|
||||
|
Reference in New Issue
Block a user