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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/catch_session.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2021-12-12 21:54:00 +0100
committerMartin Hořeňovský2021-12-18 20:49:50 +0100
commit602e484f027ccdfb59cfde852e20283ad1635f81 (patch)
tree5a4f5691d69d25ef7a6413645181956aa23c288d /src/catch2/catch_session.cpp
parent08939cc8bb01ec84ea01d83cf03e4edb8484460c (diff)
downloadcatch3-602e484f027ccdfb59cfde852e20283ad1635f81.tar.gz
Rename reportInvalidArguments -> reportInvalidTestSpec
This is has been what it actually does for a long time, but it has not been renamed earlier due to API compatibility.
Diffstat (limited to 'src/catch2/catch_session.cpp')
-rw-r--r--src/catch2/catch_session.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/catch2/catch_session.cpp b/src/catch2/catch_session.cpp
index b50d6e48..ff5e4cd8 100644
--- a/src/catch2/catch_session.cpp
+++ b/src/catch2/catch_session.cpp
@@ -62,7 +62,7 @@ namespace Catch {
m_config{config},
m_context{config, CATCH_MOVE(reporter)} {
- assert( m_config->testSpec().getInvalidArgs().empty() &&
+ assert( m_config->testSpec().getInvalidSpecs().empty() &&
"Invalid test specs should be handled before running tests" );
auto const& allTestCases = getAllTestCasesSorted(*m_config);
@@ -286,10 +286,10 @@ namespace Catch {
// Create reporter(s) so we can route listings through them
auto reporter = makeReporter(m_config.get());
- auto const& invalidSpecs = m_config->testSpec().getInvalidArgs();
+ auto const& invalidSpecs = m_config->testSpec().getInvalidSpecs();
if ( !invalidSpecs.empty() ) {
for ( auto const& spec : invalidSpecs ) {
- reporter->reportInvalidArguments( spec );
+ reporter->reportInvalidTestSpec( spec );
}
return 1;
}