diff options
Diffstat (limited to 'include/cppunit/TestCaller.h')
| -rw-r--r-- | include/cppunit/TestCaller.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/cppunit/TestCaller.h b/include/cppunit/TestCaller.h index 617ad56..ece31fa 100644 --- a/include/cppunit/TestCaller.h +++ b/include/cppunit/TestCaller.h @@ -87,6 +87,17 @@ namespace CppUnit { }; + /** Returns a TestCaller for the specified method. + * \param name Name for the TestCaller. + * \param testMethod Method called by the TestCaller. + * \return TestCaller for the specified method. + */ + template<class Fixture> + Test *makeTestCaller( std::string name, void (Fixture::*testMethod)() ) + { + return new TestCaller<Fixture>( name, testMethod ); + } + } // namespace CppUnit #endif // CPPUNIT_TESTCALLER_H |
