Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-09-15 16:03:35 +0200
committerMartin Hořeňovský2021-09-15 18:08:31 +0200
commit013edc208bb7c9f448ab122a81ce01a3ef640543 (patch)
tree0486ba5d8cd92b912d060cef1339d1e6fe135010 /src/catch2/interfaces
parent10fb93cce8cb878fdfe8faa118b531258db96a26 (diff)
downloadcatch3-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.hpp5
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;