1 #ifndef MANAK_MANAK_SUITE_HPP_INCLUDED
2 #define MANAK_MANAK_SUITE_HPP_INCLUDED
34 const std::string& pattern =
"",
35 const bool compare =
false);
73 template<
typename T,
typename... Args>
77 gr.InitCaller(args...);
79 for(
auto it : gr.cases)
87 const std::string&
Name()
const
95 const std::string&
UName()
const
108 std::map<std::string, std::list<ManakCase*>>
children;
119 #ifndef MANAK_USE_DYN_LINK
120 #include "manak_suite.cpp"
121 #endif // MANAK_USE_DYN_LINK
133 std::cerr <<
"Invalid suite name!!" << std::endl;
151 #endif // MANAK_MANAK_SUITE_HPP_INCLUDED
MANAK_INLINE ManakCase * AddCase(ManakCase *obj)
MANAK_INLINE bool LoadData(const std::string &name)
std::map< std::string, std::list< ManakCase * > > children
ManakSuite(const std::string &name)
std::map< std::string, ManakSuite * > child_suits
static ManakSuite & GetMasterSuite()
ManakSuite * GetCurrentSuite() const
MANAK_INLINE ~ManakSuite()
#define MANAK_INLINE
Check if user has opt for dynamic linking.
bool AddGroup(Args...args)
MANAK_INLINE bool Run(const std::string &uname="", const std::string &pattern="", const bool compare=false)
ManakSuite * AddSuite(ManakSuite *suite)
const std::string & Name() const
const std::string & UName() const
ManakSuite * SetCurrentSuite(ManakSuite *suite)
MANAK_INLINE bool Find(const std::string &name, std::list< ManakCase * > &lbc)
ManakSuite * SetCurrentSuiteToParent()
ManakSuite * current_manak_suite
RegisterManakSuite(const std::string &name)