#include "../application/argumentparser.h"
#include "../misc/traits.h"
#include <ostream>
#include <string>
Go to the source code of this file.
|
#define | TESTUTILS_ASSERT_EXEC(args) CPPUNIT_ASSERT_EQUAL(0, execApp(args, stdout, stderr)) |
| Asserts successful execution of application via TestApplication::execApp(). More...
|
|
|
CPP_UTILITIES_EXPORT std::string | TestUtilities::testFilePath (const std::string &name) |
| Convenience function which returns the full path of the test file with the specified name. More...
|
|
template<typename T > |
bool | TestUtilities::operator== (const AsHexNumber< T > &lhs, const AsHexNumber< T > &rhs) |
| Provides operator == required by CPPUNIT_ASSERT_EQUAL. More...
|
|
template<typename T > |
std::ostream & | TestUtilities::operator<< (std::ostream &out, const AsHexNumber< T > &value) |
| Provides the actual formatting of the output for AsHexNumber class. More...
|
|
template<typename T > |
AsHexNumber< T > | TestUtilities::asHexNumber (const T &value) |
| Wraps a value to be printed using the hex system in the error case when asserted with cppunit (or similar test framework). More...
|
|
template<typename Iteratable , Traits::EnableIf< Traits::IsIteratable< Iteratable >, Traits::Not< Traits::IsString< Iteratable >>> ...> |
std::ostream & | TestUtilities::operator<< (std::ostream &out, const Iteratable &iteratable) |
| Allows printing iteratable objects so those can be asserted using CPPUNIT_ASSERT_EQUAL. More...
|
|
constexpr std::size_t | TestUtilities::Literals::operator"" _st (unsigned long long size) |
| Literal for std::size_t to ease asserting std::size_t with CPPUNIT_ASSERT_EQUAL. More...
|
|
◆ TESTUTILS_ASSERT_EXEC
#define TESTUTILS_ASSERT_EXEC |
( |
|
args | ) |
CPPUNIT_ASSERT_EQUAL(0, execApp(args, stdout, stderr)) |
Asserts successful execution of application via TestApplication::execApp().
Output is stored in stdout and stderr.
Definition at line 180 of file testutils.h.