fsfw/contrib/fsfw_contrib/etl-20.39.4/test/UnitTest++/DeferredTestResult.h

53 lines
953 B
C
Raw Permalink Normal View History

2024-10-29 10:49:46 +01:00
#ifndef UNITTEST_DEFERREDTESTRESULT_H
#define UNITTEST_DEFERREDTESTRESULT_H
#include "Config.h"
#ifndef UNITTEST_NO_DEFERRED_REPORTER
#include "HelperMacros.h"
#include <string>
#include <vector>
namespace UnitTest
{
class UNITTEST_LINKAGE DeferredTestFailure
{
public:
DeferredTestFailure();
DeferredTestFailure(int lineNumber_, const char* failureStr_);
int lineNumber;
char failureStr[1024];
};
}
UNITTEST_STDVECTOR_LINKAGE(UnitTest::DeferredTestFailure);
namespace UnitTest
{
class UNITTEST_LINKAGE DeferredTestResult
{
public:
DeferredTestResult();
DeferredTestResult(char const* suite, char const* test);
~DeferredTestResult();
std::string suiteName;
std::string testName;
std::string failureFile;
typedef std::vector< DeferredTestFailure > FailureVec;
FailureVec failures;
float timeElapsed;
bool failed;
};
}
#endif
#endif