A container class to hold all assertions called from a single source file. More...
#include <DwmUnitAssert.hh>
Public Member Functions | |
| void | Failed (const std::string &filename, const std::string &function, int lineNumber, const std::string &test) |
| Add a failed assertion. | |
| void | Passed (const std::string &filename, const std::string &function, int lineNumber, const std::string &test) |
| Add a passed assertion. | |
| AssertionCounter | Total () const |
| Returns the total passed and failed counter. | |
| std::ostream & | Print (std::ostream &os, bool onlyFailed=false) const |
| Prints to an ostream. | |
| std::ostream & | PrintJson (std::ostream &os, bool onlyFailed=false) const |
| Prints JSON to an ostream. | |
| std::ostream & | PrintXML (std::ostream &os, bool onlyFailed=false) const |
| Prints XML to an ostream. | |
A container class to hold all assertions called from a single source file.