| 79 | }; |
| 80 | |
| 81 | TEST_F(OptimizationPassTest, UpdateFuncLibPass) { |
| 82 | RunPass(); |
| 83 | auto f1 = GetFunctionDef("XTimesTwo"); |
| 84 | ASSERT_NE(f1, nullptr); |
| 85 | EXPECT_EQ(test::function::XTimesTwo().DebugString(), f1->DebugString()); |
| 86 | |
| 87 | auto f2 = GetFunctionDef("WXPlusB"); |
| 88 | ASSERT_NE(f2, nullptr); |
| 89 | EXPECT_EQ(test::function::WXPlusB().DebugString(), f2->DebugString()); |
| 90 | } |
| 91 | |
| 92 | } // namespace tensorflow |
nothing calls this directly
no test coverage detected