Pact C++ Consumer DSL  0.0.7
DSL to support writing consumer tests in C++
Public Member Functions | List of all members
pact_consumer::PactTestResult Class Reference

#include <consumer.h>

Public Member Functions

 PactTestResult ()
 
void add_state (TestResultState state)
 
void add_state (TestResultState state, std::string message)
 
void add_state (TestResultState state, std::string message, std::string ex)
 
bool is_ok () const
 
void display_errors ()
 

Detailed Description

Result of the Pact test run

Constructor & Destructor Documentation

◆ PactTestResult()

pact_consumer::PactTestResult::PactTestResult ( )

Member Function Documentation

◆ add_state() [1/3]

void pact_consumer::PactTestResult::add_state ( TestResultState  state)

Adds a test state to the result

◆ add_state() [2/3]

void pact_consumer::PactTestResult::add_state ( TestResultState  state,
std::string  message 
)

Adds a test state with a message to the result

◆ add_state() [3/3]

void pact_consumer::PactTestResult::add_state ( TestResultState  state,
std::string  message,
std::string  ex 
)

Adds a test state with a message to the result

◆ display_errors()

void pact_consumer::PactTestResult::display_errors ( )

Logs all errors out

◆ is_ok()

bool pact_consumer::PactTestResult::is_ok ( ) const

If there are no mismatches and the user code did not fail


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