Mark TestInvoker{AsMethod,Fixture} as final

This commit is contained in:
Martin Hořeňovský
2026-04-07 11:07:59 +02:00
parent 77eae8bd2a
commit e51dcdcc59
+2 -2
View File
@@ -29,7 +29,7 @@
namespace Catch {
template<typename C>
class TestInvokerAsMethod : public ITestInvoker {
class TestInvokerAsMethod final : public ITestInvoker {
void (C::*m_testAsMethod)();
public:
constexpr TestInvokerAsMethod( void ( C::*testAsMethod )() ) noexcept:
@@ -49,7 +49,7 @@ Detail::unique_ptr<ITestInvoker> makeTestInvoker( void (C::*testAsMethod)() ) {
}
template <typename C>
class TestInvokerFixture : public ITestInvoker {
class TestInvokerFixture final : public ITestInvoker {
void ( C::*m_testAsMethod )() const;
Detail::unique_ptr<C> m_fixture = nullptr;