#include "tensorstore/util/status_testutil.h"
TENSORSTORE_ASSERT_OK_AND_ASSIGN(declexpr);

ASSERTs that expr is a tensorstore::Result with a value, and assigns the value to decl.

Example:

tensorstore::Result<int> GetResult();

TENSORSTORE_ASSERT_OK_AND_ASSIGN(int x, GetResult());