2
0
mirror of https://github.com/catchorg/Catch2 synced 2026-02-21 03:32:16 +00:00

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.
This commit is contained in:
Martin Hořeňovský
2021-12-12 21:54:00 +01:00
parent 08939cc8bb
commit 602e484f02
14 changed files with 22 additions and 22 deletions

View File

@@ -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;
}