ATLAS Offline Software
|
Helper to check that an exception is thrown. More...
#include <cassert>
Go to the source code of this file.
Macros | |
#define | EXPECT_EXCEPTION(EXC, CODE) |
Helper to check that an exception is thrown. More... | |
#define EXPECT_EXCEPTION | ( | EXC, | |
CODE | |||
) |
Helper to check that an exception is thrown.
Use like this:
This will produce an assertion failure if doSomething()
does not throw a std::runtime_error
exception.
Definition at line 34 of file expect_exception.h.