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

44 lines
865 B
C++
Raw Normal View History

2024-10-29 10:49:46 +01:00
#include "Config.h"
#ifndef UNITTEST_NO_DEFERRED_REPORTER
#include "DeferredTestResult.h"
#include <cstring>
namespace UnitTest
{
DeferredTestFailure::DeferredTestFailure()
: lineNumber(-1)
{
failureStr[0] = '\0';
}
DeferredTestFailure::DeferredTestFailure(int lineNumber_, const char* failureStr_)
: lineNumber(lineNumber_)
{
UNIITEST_NS_QUAL_STD(strcpy)(failureStr, failureStr_);
}
DeferredTestResult::DeferredTestResult()
: suiteName("")
, testName("")
, failureFile("")
, timeElapsed(0.0f)
, failed(false)
{}
DeferredTestResult::DeferredTestResult(char const* suite, char const* test)
: suiteName(suite)
, testName(test)
, failureFile("")
, timeElapsed(0.0f)
, failed(false)
{}
DeferredTestResult::~DeferredTestResult()
{}
}
#endif