#include <memory>
#include <ostream>
#include <string>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/str_cat.h"
#include "gmock/gmock-matchers.h"
Go to the source code of this file.
◆ ASSERT_OK
#define ASSERT_OK |
( |
| expression | ) |
|
Value:
internal::IsOkMatcher IsOk()
Returns a gMock matcher that matches a Status or StatusOr<> which is OK.
Definition at line 277 of file status_matchers.h.
◆ ASSERT_OK_AND_ASSIGN
#define ASSERT_OK_AND_ASSIGN |
( |
| lhs, |
|
|
| rexpr ) |
Value:
#define STATUS_MATCHERS_IMPL_CONCAT_(x, y)
#define ASSERT_OK_AND_ASSIGN_IMPL_(statusor, lhs, rexpr)
Definition at line 284 of file status_matchers.h.
◆ ASSERT_OK_AND_ASSIGN_IMPL_
#define ASSERT_OK_AND_ASSIGN_IMPL_ |
( |
| statusor, |
|
|
| lhs, |
|
|
| rexpr ) |
Value: auto statusor = (rexpr); \
ASSERT_TRUE(statusor.ok()) << statusor.status(); \
lhs = std::move(statusor.value())
Definition at line 288 of file status_matchers.h.
◆ EXPECT_OK
#define EXPECT_OK |
( |
| expression | ) |
|
Value:Macros for testing the results of functions that return absl::Status or absl::StatusOr<T> (for any type T).
Definition at line 276 of file status_matchers.h.
◆ STATUS_MATCHERS_IMPL_CONCAT_
#define STATUS_MATCHERS_IMPL_CONCAT_ |
( |
| x, |
|
|
| y ) |
Value:
#define STATUS_MATCHERS_IMPL_CONCAT_INNER_(x, y)
Definition at line 280 of file status_matchers.h.
◆ STATUS_MATCHERS_IMPL_CONCAT_INNER_
#define STATUS_MATCHERS_IMPL_CONCAT_INNER_ |
( |
| x, |
|
|
| y ) |