| 59 | StatusOr<int> CreateIntSuccessfully() { return 42; } |
| 60 | |
| 61 | StatusOr<int> CreateIntUnsuccessfully() { |
| 62 | return tensorflow::errors::Internal("foobar"); |
| 63 | } |
| 64 | |
| 65 | TEST(StatusMacros, AssignOrAssertOnOK) { |
| 66 | TF_ASSERT_OK_AND_ASSIGN(int result, CreateIntSuccessfully()); |
nothing calls this directly
no test coverage detected