|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
Collects a case's checks and keeps the first failure, so a case reads top to bottom. More...
#include <backend_conformance.hpp>
Public Member Functions | |
| void | text (std::string_view what, std::string_view expected, std::string_view actual) |
| Checks that a text is what it should be. | |
| void | that (bool holds, std::string_view what) |
| Checks a condition. | |
| std::optional< std::string > | result () const |
| The case's verdict. | |
Collects a case's checks and keeps the first failure, so a case reads top to bottom.
Definition at line 193 of file backend_conformance.hpp.
|
inline |
Checks that a text is what it should be.
| what | What is checked, for the message. |
| expected | The text it should be. |
| actual | The text it is. |
Definition at line 199 of file backend_conformance.hpp.
|
inline |
Checks a condition.
| holds | The condition. |
| what | The failure message when it does not hold. |
Definition at line 208 of file backend_conformance.hpp.
|
inlinenodiscard |
The case's verdict.
Definition at line 216 of file backend_conformance.hpp.