Handle assertions of mock objects. More...
Go to the source code of this file.
Namespaces | |
namespace | mockpp |
Namespace for project "Mock Objects for C++". | |
Defines | |
#define | MOCKPP_ASSERT_INCLUDES_MESSAGE(msg, a, b) MOCKPP_NS::assertIncludes(__LINE__, __FILE__, msg, a, b) |
Asserts that a string does contain a substring. | |
#define | MOCKPP_ASSERT_INCLUDES(a, b) MOCKPP_NS::assertIncludes(__LINE__, __FILE__, MOCKPP_PCHAR(#a) MOCKPP_PCHAR(" <in> ") MOCKPP_PCHAR(#b), a, b) |
Asserts that a string does contain a substring. | |
#define | MOCKPP_ASSERT_EXCLUDES_MESSAGE(msg, a, b) MOCKPP_NS::assertExcludes(__LINE__, __FILE__, msg, a, b) |
Asserts that a string does not contain a substring. | |
#define | MOCKPP_ASSERT_EXCLUDES(a, b) MOCKPP_NS::assertExcludes(__LINE__, __FILE__, MOCKPP_PCHAR(#a) MOCKPP_PCHAR(" <!in> ") MOCKPP_PCHAR(#b), a, b) |
Asserts that a string does not contain a substring. | |
#define | MOCKPP_ASSERT_STARTSWITH_MESSAGE(msg, a, b) MOCKPP_NS::assertStartsWith(__LINE__, __FILE__, msg, a, b) |
Asserts that a string starts with a substring. | |
#define | MOCKPP_ASSERT_STARTSWITH(a, b) MOCKPP_NS::assertStartsWith(__LINE__, __FILE__, MOCKPP_PCHAR(#a) MOCKPP_PCHAR(" <starts> ") MOCKPP_PCHAR(#b), a, b) |
Asserts that a string starts with a substring. | |
#define | MOCKPP_ASSERT_VERIFYFAILS(obj) MOCKPP_NS::assertVerifyFails(__LINE__, __FILE__, obj) |
Asserts that a verify() of an object fails. | |
#define | MOCKPP_NOT_IMPLEMENTED(msg) MOCKPP_NS::notImplemented(__LINE__, __FILE__, msg) |
Throws unconditionally a NotImplementedException with the given name to indicate a not yet implemented method. | |
#define | MOCKPP_ASSERT_THROWING(action, action_name, except, except_data) |
Asserts that an exception is thrown and that the data is correctly transfered to the catch clause. | |
#define | MOCKPP_ASSERT_THROWING_COND(action, action_name, except, condition) |
Asserts that an exception is thrown and that the data is correctly transfered to the catch clause. | |
#define | MOCKPP_ASSERT_THROWING_EQUALS(action, action_name, except, expected, actual) |
Asserts that an exception is thrown and that the data is correctly transfered to the catch clause. | |
Functions | |
void | mockpp::assertExcludes (unsigned srcline, const char *srcfile, const String &description, const std::string &excludeString, const std::string &targetString) |
Asserts that a string does not contain a substring. | |
void | mockpp::assertExcludes (unsigned srcline, const char *srcfile, const String &description, const std::basic_string< wchar_t > &excludeString, const std::basic_string< wchar_t > &targetString) |
Asserts that a string does not contain a substring. | |
void | mockpp::assertIncludes (unsigned srcline, const char *srcfile, const String &description, const std::string &includeString, const std::string &targetString) |
Asserts that a string does contain a substring. | |
void | mockpp::assertIncludes (unsigned srcline, const char *srcfile, const String &description, const std::basic_string< wchar_t > &includeString, const std::basic_string< wchar_t > &targetString) |
Asserts that a string does contain a substring. | |
void | mockpp::assertStartsWith (unsigned srcline, const char *srcfile, const String &description, const std::string &startString, const std::string &targetString) |
Asserts that a string starts with a substring. | |
void | mockpp::assertStartsWith (unsigned srcline, const char *srcfile, const String &description, const std::basic_string< wchar_t > &startString, const std::basic_string< wchar_t > &targetString) |
Asserts that a string starts with a substring. | |
void | mockpp::assertVerifyFails (unsigned srcline, const char *srcfile, Verifiable *aVerifiable) |
Asserts that a verify() of an object fails. | |
void | mockpp::notImplemented (unsigned srcline, const char *srcfile, const String &mockName) |
Throws unconditionally a NotImplementedException with the given name to indicate a not yet implemented method. |
Handle assertions of mock objects.
Definition in file AssertMo.h.