MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CreateIntUnsuccessfully

Function CreateIntUnsuccessfully

tensorflow/compiler/xla/status_macros_test.cc:61–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59StatusOr<int> CreateIntSuccessfully() { return 42; }
60
61StatusOr<int> CreateIntUnsuccessfully() {
62 return tensorflow::errors::Internal("foobar");
63}
64
65TEST(StatusMacros, AssignOrAssertOnOK) {
66 TF_ASSERT_OK_AND_ASSIGN(int result, CreateIntSuccessfully());

Callers

nothing calls this directly

Calls 1

InternalFunction · 0.85

Tested by

no test coverage detected