Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SpecsCpp::ISpecRunResult Struct Referenceabstract

#include <API.h>

Inheritance diagram for SpecsCpp::ISpecRunResult:
SpecsCpp::SpecRunResult

Public Member Functions

virtual ~ISpecRunResult ()=default
 
virtual ISpecComponentcomponent () const =0
 
virtual ISpecGroupgroup () const =0
 
virtual ISpecspec () const =0
 
virtual RunResultStatus status () const =0
 
virtual const char * message () const =0
 
virtual ISpecRunResultcopy () const =0
 
virtual const char * status_as_string () const
 

Detailed Description

Definition at line 173 of file API.h.

Constructor & Destructor Documentation

◆ ~ISpecRunResult()

virtual SpecsCpp::ISpecRunResult::~ISpecRunResult ( )
virtualdefault

Member Function Documentation

◆ component()

virtual ISpecComponent * SpecsCpp::ISpecRunResult::component ( ) const
pure virtual

Implemented in SpecsCpp::SpecRunResult.

◆ copy()

virtual ISpecRunResult * SpecsCpp::ISpecRunResult::copy ( ) const
pure virtual

Implemented in SpecsCpp::SpecRunResult.

◆ group()

virtual ISpecGroup * SpecsCpp::ISpecRunResult::group ( ) const
pure virtual

Implemented in SpecsCpp::SpecRunResult.

◆ message()

virtual const char * SpecsCpp::ISpecRunResult::message ( ) const
pure virtual

Implemented in SpecsCpp::SpecRunResult.

◆ spec()

virtual ISpec * SpecsCpp::ISpecRunResult::spec ( ) const
pure virtual

Implemented in SpecsCpp::SpecRunResult.

◆ status()

virtual RunResultStatus SpecsCpp::ISpecRunResult::status ( ) const
pure virtual

Implemented in SpecsCpp::SpecRunResult.

Referenced by status_as_string().

◆ status_as_string()

virtual const char * SpecsCpp::ISpecRunResult::status_as_string ( ) const
inlinevirtual

Definition at line 182 of file API.h.

182 {
183 switch (status()) {
185 return "Passed";
187 return "Failed";
189 return "NotRun";
191 return "Timeout";
192 default:
193 return "Unknown";
194 }
195 }
virtual RunResultStatus status() const =0

The documentation for this struct was generated from the following file: