Pact C++ Consumer DSL
0.0.7
DSL to support writing consumer tests in C++
|
#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 () |
Result of the Pact test run
pact_consumer::PactTestResult::PactTestResult | ( | ) |
void pact_consumer::PactTestResult::add_state | ( | TestResultState | state | ) |
Adds a test state to the result
void pact_consumer::PactTestResult::add_state | ( | TestResultState | state, |
std::string | message | ||
) |
Adds a test state with a message to the result
void pact_consumer::PactTestResult::add_state | ( | TestResultState | state, |
std::string | message, | ||
std::string | ex | ||
) |
Adds a test state with a message to the result
void pact_consumer::PactTestResult::display_errors | ( | ) |
Logs all errors out
bool pact_consumer::PactTestResult::is_ok | ( | ) | const |
If there are no mismatches and the user code did not fail