std::list<Function *> functions;
std::string detail_info;
std::string detail_debug;
+ std::string fail_reason;
bool passed;
protected:
return *functions.back();
}
+ template<typename T, typename A>
+ Function &add(void (T::*f)(A), const A &a, const std::string &d)
+ {
+ functions.push_back(new TypedFunction1<T, A>(f, a, d));
+ return *functions.back();
+ }
+
public:
static void run_single(const std::string &, bool);
static void run_all(bool);
void info(const std::string &);
void debug(const std::string &);
+ void fail(const std::string &);
};
template<typename T>