kaycxx-test
C++ unit test framework
Loading...
Searching...
No Matches
Public Member Functions | List of all members
kaycxx::test::skipped Class Reference

Result object passed to reporters when a test case was skipped. More...

#include <kaycxx/test/skipped.hpp>

Public Member Functions

 skipped (std::string_view reason="")
 Creates a skipped test result.
 
std::string const & reason () const noexcept
 Returns the skip reason.
 

Detailed Description

Result object passed to reporters when a test case was skipped.

Constructor & Destructor Documentation

◆ skipped()

kaycxx::test::skipped::skipped ( std::string_view  reason = "")
explicit

Creates a skipped test result.

Parameters
reasonOptional reason why the test was skipped.

Member Function Documentation

◆ reason()

std::string const & kaycxx::test::skipped::reason ( ) const
noexcept

Returns the skip reason.

Returns
The skip reason, or an empty string if no reason was provided.

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