mirror of
https://github.com/pantor/inja.git
synced 2026-02-17 09:03:58 +00:00
* inja2 * header only * reduce dependencies * code cleaning * c++17 * use stdc++ * code cleaning * infrastructure * header only * add infrastructure * fix tests * use minimum clang 6 * code cleaning, polyfill for c++11 * fix some file tests * fix readme * update appveyor * fix polyfill and ci * fix polyfill * fix ci? * test msvc __cplusplus * add doxygen * activate all tests * code cleaning * add coveralls, set default to dot notation * add html test * add doxygen comments * test single_include file * change build folder in appveyor * correct make arguments in appveyor * fix appveyor arguments
28 lines
637 B
C++
Executable File
28 lines
637 B
C++
Executable File
#ifndef __HAYAI_DEFAULTTESTFACTORY
|
|
#define __HAYAI_DEFAULTTESTFACTORY
|
|
#include "hayai_test_factory.hpp"
|
|
|
|
namespace hayai
|
|
{
|
|
/// Default test factory implementation.
|
|
|
|
/// Simply constructs an instance of a the test of class @ref T with no
|
|
/// constructor parameters.
|
|
///
|
|
/// @tparam T Test class.
|
|
template<class T>
|
|
class TestFactoryDefault
|
|
: public TestFactory
|
|
{
|
|
public:
|
|
/// Create a test instance with no constructor parameters.
|
|
|
|
/// @returns a pointer to an initialized test.
|
|
virtual Test* CreateTest()
|
|
{
|
|
return new T();
|
|
}
|
|
};
|
|
}
|
|
#endif
|