mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-27 00:28:49 +03:00
34 lines
No EOL
623 B
C++
34 lines
No EOL
623 B
C++
#ifndef UNITTEST_SUITEPREDICATE_H
|
|
#define UNITTEST_SUITEPREDICATE_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include "Test.h"
|
|
|
|
namespace UnitTest
|
|
{
|
|
using namespace std;
|
|
|
|
class UNITTEST_LINKAGE SuitePredicate
|
|
{
|
|
public:
|
|
SuitePredicate();
|
|
virtual ~SuitePredicate();
|
|
|
|
void addSuite(char const* suiteName);
|
|
void addTest(char const* testName);
|
|
void addAll();
|
|
|
|
bool operator()(Test const * const test) const;
|
|
|
|
private:
|
|
bool mustExecuteSuite(Test const * const test) const;
|
|
bool mustExecuteTest(Test const * const test) const;
|
|
|
|
vector<string> _suiteNames;
|
|
vector<string> _testNames;
|
|
bool _all;
|
|
};
|
|
}
|
|
|
|
#endif |