#include "llvm/Support/Error.h"
#include "llvm/Testing/Support/SupportHelpers.h"
#include "gmock/gmock.h"
#include <ostream>
Go to the source code of this file.
|
namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations.
|
namespace | llvm::detail |
| These are wrappers over isa* function that allow them to be used in generic algorithms such as llvm:all_of, llvm::none_of, etc.
|
◆ ASSERT_THAT_ERROR
#define ASSERT_THAT_ERROR |
( |
| Err, |
|
|
| Matcher ) |
Value:
ErrorHolder TakeError(Error Err)
Definition at line 165 of file Error.h.
◆ ASSERT_THAT_EXPECTED
#define ASSERT_THAT_EXPECTED |
( |
| Err, |
|
|
| Matcher ) |
Value:
ExpectedHolder< T > TakeExpected(Expected< T > &Exp)
Definition at line 191 of file Error.h.
◆ EXPECT_THAT_ERROR
#define EXPECT_THAT_ERROR |
( |
| Err, |
|
|
| Matcher ) |
◆ EXPECT_THAT_EXPECTED
#define EXPECT_THAT_EXPECTED |
( |
| Err, |
|
|
| Matcher ) |
Value:
Helper macro for checking the result of an 'Expected<T>'.
Expected<int> myDivide(
int A,
int B);
TEST(myDivideTests, GoodAndBad) {
FailedWithMessage("B must not be zero!"));
}
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
#define EXPECT_THAT_EXPECTED(Err, Matcher)
Helper macro for checking the result of an 'Expected<T>'.
Definition at line 189 of file Error.h.