C++Spec 1.0.0
BDD testing for C++
Loading...
Searching...
No Matches
CppSpec::Result Class Reference

Public Types

enum class  Status { Success , Failure , Error , Skipped }

Public Member Functions

void set_status (Status status) noexcept
Status status () const noexcept
bool is_success () const noexcept
bool is_failure () const noexcept
bool skipped () const noexcept
bool is_error () const noexcept
std::source_location get_location () const noexcept
std::string get_location_string () const noexcept
std::string get_type () const noexcept
void set_type (std::string type) noexcept
std::string get_message () const noexcept
Result & set_message (std::string message) noexcept

Static Public Member Functions

static Result reduce (const Result &lhs, const Result &rhs) noexcept
static Result success (std::source_location location) noexcept
static Result failure (std::source_location location) noexcept
static Result success_with (std::source_location location, std::string success_message) noexcept
static Result failure_with (std::source_location location, std::string failure_message) noexcept
static Result error (std::source_location location) noexcept
static Result error_with (std::source_location location, std::string error_message) noexcept
static Result skipped (std::source_location location) noexcept
static Result skipped_with (std::source_location location, std::string skipped_message) noexcept

Friends

std::ostream & operator<< (std::ostream &os, const Result &res)

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