-
#include "tensorstore/util/status_testutil.h"
- TENSORSTORE_EXPECT_OK(expr);
EXPECT assertion that the argument, when converted to an
absl::Status
viatensorstore::GetStatus
, has a code ofabsl::StatusCode::kOk
.Example:
absl::Status DoSomething(); tensorstore::Result<int> GetResult(); TENSORSTORE_EXPECT_OK(DoSomething()); TENSORSTORE_EXPECT_OK(GetResult());