backend-infra-engineer: Release v0.3.3 snapshot
This commit is contained in:
@@ -23,7 +23,9 @@ namespace test {
|
||||
|
||||
// StatusIs is a matcher that matches a status that has the same code and
|
||||
// message as the expected status.
|
||||
MATCHER_P(StatusIs, status, "") { return arg.code() == status; }
|
||||
MATCHER_P(StatusIs, status, "") {
|
||||
return arg.code() == status;
|
||||
}
|
||||
|
||||
// Support for testing absl::StatusOr.
|
||||
template <typename T>
|
||||
@@ -40,7 +42,9 @@ template <typename T>
|
||||
return ::testing::AssertionSuccess();
|
||||
}
|
||||
|
||||
MATCHER_P(IsOkAndHolds, value, "") { return IsOkAndHolds(arg, value); }
|
||||
MATCHER_P(IsOkAndHolds, value, "") {
|
||||
return IsOkAndHolds(arg, value);
|
||||
}
|
||||
|
||||
// Helper to test if a StatusOr contains an error with a specific message
|
||||
MATCHER_P(StatusIsWithMessage, message, "") {
|
||||
|
||||
Reference in New Issue
Block a user