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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2026-04-07 11:07:59 +0200
committerMartin Hořeňovský2026-04-07 14:36:08 +0200
commite51dcdcc595371828de2b1d28985e8d8c1895345 (patch)
tree5c63ffc139743e08c1c416bdc97fa3041ca77457 /src
parent77eae8bd2a2c8c3135d30649aa7c51b5bfc0e61e (diff)
downloadcatch3-e51dcdcc595371828de2b1d28985e8d8c1895345.tar.gz
Mark TestInvoker{AsMethod,Fixture} as final
Diffstat (limited to 'src')
-rw-r--r--src/catch2/internal/catch_test_registry.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_test_registry.hpp b/src/catch2/internal/catch_test_registry.hpp
index 5c3a226d..593593ba 100644
--- a/src/catch2/internal/catch_test_registry.hpp
+++ b/src/catch2/internal/catch_test_registry.hpp
@@ -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;