| 321 | } |
| 322 | |
| 323 | inline Status FromExecutorStatus(const se::port::Status& s) { |
| 324 | return s.ok() ? Status::OK() |
| 325 | : Status(static_cast<error::Code>(static_cast<int>(s.code())), |
| 326 | s.error_message()); |
| 327 | } |
| 328 | |
| 329 | template <typename T> |
| 330 | inline Status FromExecutorStatus(const se::port::StatusOr<T>& s) { |
no test coverage detected