| 64 | } |
| 65 | |
| 66 | void ExpectError(TF_Code expected_code, const string& expected_msg) { |
| 67 | TF_FinishWhile(params_.get(), s_, &outputs_[0]); |
| 68 | EXPECT_EQ(expected_code, TF_GetCode(s_)); |
| 69 | EXPECT_EQ(expected_msg, TF_Message(s_)); |
| 70 | // TODO(skyewm): this assert is currently broken. Fix or remove guarantee. |
| 71 | // ASSERT_EQ(original_graph_description_, GraphDebugString()) << |
| 72 | // "TF_FinishWhile() altered graph on error"; |
| 73 | } |
| 74 | |
| 75 | void Run(std::initializer_list<int> input_values) { |
| 76 | Run(outputs_, input_values); |
nothing calls this directly
no test coverage detected