diff options
| author | Martin Hořeňovský | 2021-09-15 16:03:35 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2021-09-15 18:08:31 +0200 |
| commit | 013edc208bb7c9f448ab122a81ce01a3ef640543 (patch) | |
| tree | 0486ba5d8cd92b912d060cef1339d1e6fe135010 /src/catch2/interfaces | |
| parent | 10fb93cce8cb878fdfe8faa118b531258db96a26 (diff) | |
| download | catch3-013edc208bb7c9f448ab122a81ce01a3ef640543.tar.gz | |
Refactor noMatchingTestCases and skipTests reporter methods
They now take `StringRef` as the argument, and are virtual only
in the basic interface.
Also cleaned out the various reporters and their overrides
of these members which were often empty or delegating up.
Diffstat (limited to 'src/catch2/interfaces')
| -rw-r--r-- | src/catch2/interfaces/catch_interfaces_reporter.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_reporter.hpp b/src/catch2/interfaces/catch_interfaces_reporter.hpp index 0056c8ad..25ad540f 100644 --- a/src/catch2/interfaces/catch_interfaces_reporter.hpp +++ b/src/catch2/interfaces/catch_interfaces_reporter.hpp @@ -171,9 +171,8 @@ namespace Catch { return m_preferences; } - virtual void noMatchingTestCases( std::string const& spec ) = 0; - - virtual void reportInvalidArguments(std::string const&) {} + virtual void noMatchingTestCases( StringRef unmatchedSpec ) = 0; + virtual void reportInvalidArguments( StringRef invalidArgument ) = 0; virtual void testRunStarting( TestRunInfo const& testRunInfo ) = 0; |