Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::TestInvokerAsMethod< C > Class Template Reference

#include <catch_test_registry.h>

Inheritance diagram for Catch::TestInvokerAsMethod< C >:
Collaboration diagram for Catch::TestInvokerAsMethod< C >:

Public Member Functions

 TestInvokerAsMethod (void(C::*testAsMethod)()) noexcept
 
void invoke () const override
 
 TestInvokerAsMethod (void(C::*testAsMethod)()) noexcept
 
void invoke () const override
 
- Public Member Functions inherited from Catch::ITestInvoker
virtual ~ITestInvoker ()
 
virtual ~ITestInvoker ()
 

Detailed Description

template<typename C>
class Catch::TestInvokerAsMethod< C >

Definition at line 816 of file catch.hpp.

Constructor & Destructor Documentation

◆ TestInvokerAsMethod() [1/2]

template<typename C >
Catch::TestInvokerAsMethod< C >::TestInvokerAsMethod ( void(C::* testAsMethod )())
inlinenoexcept

Definition at line 25 of file catch_test_registry.h.

25: m_testAsMethod( testAsMethod ) {}

◆ TestInvokerAsMethod() [2/2]

template<typename C >
Catch::TestInvokerAsMethod< C >::TestInvokerAsMethod ( void(C::* testAsMethod )())
inlinenoexcept

Definition at line 819 of file catch.hpp.

819: m_testAsMethod( testAsMethod ) {}

Member Function Documentation

◆ invoke() [1/2]

template<typename C >
void Catch::TestInvokerAsMethod< C >::invoke ( ) const
inlineoverridevirtual

Implements Catch::ITestInvoker.

Definition at line 27 of file catch_test_registry.h.

27 {
28 C obj;
29 (obj.*m_testAsMethod)();
30 }

◆ invoke() [2/2]

template<typename C >
void Catch::TestInvokerAsMethod< C >::invoke ( ) const
inlineoverridevirtual

Implements Catch::ITestInvoker.

Definition at line 821 of file catch.hpp.

821 {
822 C obj;
823 (obj.*m_testAsMethod)();
824 }

The documentation for this class was generated from the following files: