#include <SETestCase.h>

Inherits Loggable.

Public Member Functions

virtual ~SETestCase ()
 
virtual void Reset ()
 
virtual void Clear ()
 
void SetName (const std::string &name)
 
std::string GetName () const
 
SEScalarTimeGetDuration ()
 
void AddFailure (std::stringstream &msg)
 
void AddFailure (const std::string &err)
 
const std::vector< std::string > & GetFailures ()
 
SETestErrorStatisticsCreateErrorStatistic ()
 
const std::vector< SETestErrorStatistics * > & GetErrorStatistics () const
 
- Public Member Functions inherited from Loggable
 Loggable (Logger *logger=nullptr)
 
 Loggable (std::string const &logfile)
 
virtual ~Loggable ()
 
virtual LoggerGetLogger () const
 
virtual void SetLogger (Logger &logger)
 
virtual void Debug (std::string const &msg) const
 
virtual void Debug (std::stringstream &msg) const
 
virtual void Debug (std::ostream &msg) const
 
virtual void Info (std::string const &msg) const
 
virtual void Info (std::stringstream &msg) const
 
virtual void Info (const std::stringstream &msg) const
 
virtual void Info (std::ostream &msg) const
 
virtual void Warning (std::string const &msg) const
 
virtual void Warning (std::stringstream &msg) const
 
virtual void Warning (std::ostream &msg) const
 
virtual void Error (std::string const &msg) const
 
virtual void Error (std::stringstream &msg) const
 
virtual void Error (std::ostream &msg) const
 
virtual void Fatal (std::string const &msg) const
 
virtual void Fatal (std::stringstream &msg) const
 
virtual void Fatal (std::ostream &msg) const
 

Protected Member Functions

 SETestCase (Logger *logger)
 
 SETestCase (const std::string &name, Logger *logger)
 

Protected Attributes

std::string m_Name
 
SEScalarTimem_Duration
 
std::vector< std::string > m_Failure
 
std::vector< SETestErrorStatistics * > m_CaseEqualsErrors
 
- Protected Attributes inherited from Loggable
bool myLogger
 
Loggerm_Logger
 

Private Attributes

friend SETestSuite
 

Friends

class PBTestReport
 

Constructor & Destructor Documentation

◆ SETestCase() [1/2]

SETestCase::SETestCase ( Logger logger)
protected

◆ SETestCase() [2/2]

SETestCase::SETestCase ( const std::string &  name,
Logger logger 
)
protected

◆ ~SETestCase()

SETestCase::~SETestCase ( )
virtual

Member Function Documentation

◆ AddFailure() [1/2]

void SETestCase::AddFailure ( const std::string &  err)

◆ AddFailure() [2/2]

void SETestCase::AddFailure ( std::stringstream &  msg)

◆ Clear()

void SETestCase::Clear ( )
virtual

◆ CreateErrorStatistic()

SETestErrorStatistics & SETestCase::CreateErrorStatistic ( )

◆ GetDuration()

SEScalarTime & SETestCase::GetDuration ( )

◆ GetErrorStatistics()

const std::vector< SETestErrorStatistics * > & SETestCase::GetErrorStatistics ( ) const

◆ GetFailures()

const std::vector< std::string > & SETestCase::GetFailures ( )

◆ GetName()

std::string SETestCase::GetName ( ) const

◆ Reset()

void SETestCase::Reset ( )
virtual

◆ SetName()

void SETestCase::SetName ( const std::string &  name)

Friends And Related Function Documentation

◆ PBTestReport

friend class PBTestReport
friend

Member Data Documentation

◆ m_CaseEqualsErrors

std::vector<SETestErrorStatistics*> SETestCase::m_CaseEqualsErrors
protected

◆ m_Duration

SEScalarTime* SETestCase::m_Duration
protected

◆ m_Failure

std::vector<std::string> SETestCase::m_Failure
protected

◆ m_Name

std::string SETestCase::m_Name
protected

◆ SETestSuite

friend SETestCase::SETestSuite
private

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.