CppUnit project page | CppUnit home page |
#include <cpput/forwards.h>
#include <cpput/message.h>
#include <cpptl/intrusiveptr.h>
#include <json/value.h>
#include <stdexcept>
Go to the source code of this file.
Namespaces | |
namespace | CppUT |
namespace | CppUT::Impl |
Classes | |
class | CppUT::AbortingAssertionException |
Exception thrown when an aborting assertion fails. More... | |
class | CppUT::SkipTestException |
Exception thrown to skip the current test. More... | |
class | CppUT::UndeclaredResourceException |
Exception thrown when attempting to obtain an undeclared resource. More... | |
class | CppUT::SourceLocation |
Represents the location of an assertion in the source code. More... | |
class | CppUT::Assertion |
Represents a failed assertion. More... | |
class | CppUT::TestStatus |
Represents the status of the current test. More... | |
class | CppUT::CheckerResult |
All checker functions used in assert and check macro should returns an object of this type. More... | |
class | CppUT::Impl::CheckerLineLocation |
Implementation detail of CPPUT_BEGIN_ASSERTION_MACRO() & CPPUT_BEGIN_CHECKING_MACRO(). More... | |
struct | CppUT::Impl::FileLocationMarker |
class | CppUT::Impl::CheckerFileLocation |
Implementation detail of CPPUT_BEGIN_ASSERTION_MACRO() & CPPUT_BEGIN_CHECKING_MACRO(). More... | |
class | CppUT::Impl::AssertionTrigger |
Implementation detail of CPPUT_BEGIN_ASSERTION_MACRO() & CPPUT_BEGIN_CHECKING_MACRO(). More... | |
class | CppUT::TestResultUpdater |
Provides notification of failed assertions and log events. More... | |
class | CppUT::TestInfo |
Heart of the test system: hold current test status and the state of the current assertion. More... | |
class | CppUT::TestInfo::ScopedContextOverride |
class | CppUT::TestInfo::IgnoreFailureScopedContextOverride |
Defines | |
#define | CPPUT_BEGIN_ASSERTION_MACRO() CppUT::Impl::AssertionTrigger::aborting += (const CppUT::Impl::FileLocationMarker *)__FILE__ + __LINE__ / |
#define | CPPUT_BEGIN_CHECKING_MACRO() CppUT::Impl::AssertionTrigger::checking += (const CppUT::Impl::FileLocationMarker *)__FILE__ + __LINE__ / |
Enumerations | |
enum | CppUT::AssertionType { CppUT::abortingAssertion = 1, CppUT::checkingAssertion } |
Indiciates if on failure the assertion it will abort the current test. More... | |
enum | CppUT::AbortingAssertionMode { CppUT::fastAbortingAssertion = 1, CppUT::richAbortingAssertion } |
Indicates if AbortingAssertionException contains detail about the failed assertion. Used by CppUnit 2 to test itself without relying on TestResultUpdater. More... | |
Functions | |
Resource & | CppUT::getResource (const ResourceName &name) |
Obtains the instance of the resource required by the test case. | |
void | CppUT::log (const Json::Value &log) |
Log an event. | |
void | CppUT::log (const std::string &log) |
Log an event. | |
void | CppUT::log (const char *log) |
Log an event. | |
void | CppUT::log (const CppTL::ConstString &log) |
Log an event. | |
CppUT::Impl::CheckerLineLocation | operator/ (unsigned long line, const CppUT::CheckerResult &result) |
CppUT::Impl::CheckerFileLocation | operator+ (const CppUT::Impl::FileLocationMarker *file, const CppUT::Impl::CheckerLineLocation &lineData) |
CppUT::Impl::CheckerFileLocation operator+ | ( | const CppUT::Impl::FileLocationMarker * | file, | |
const CppUT::Impl::CheckerLineLocation & | lineData | |||
) | [inline] |
CppUT::Impl::CheckerLineLocation operator/ | ( | unsigned long | line, | |
const CppUT::CheckerResult & | result | |||
) | [inline] |
hosts this site. |
Send comments to: CppUnit Developers |