| 28 | namespace { |
| 29 | |
| 30 | TEST(FunctionDefTensorDesc, Parsing) { |
| 31 | FunctionDefTensorDesc f("Cast:y:0"); |
| 32 | EXPECT_EQ(f.full_str, "Cast:y:0"); |
| 33 | EXPECT_EQ(f.node_name, "Cast"); |
| 34 | EXPECT_EQ(f.node_output, "y"); |
| 35 | EXPECT_EQ(f.position, 0); |
| 36 | |
| 37 | FunctionDefTensorDesc f2("Arg0"); |
| 38 | EXPECT_EQ(f2.full_str, "Arg0"); |
| 39 | EXPECT_EQ(f2.node_name, "Arg0"); |
| 40 | EXPECT_EQ(f2.node_output, ""); |
| 41 | EXPECT_EQ(f2.position, -1); |
| 42 | } |
| 43 | |
| 44 | TEST(ReplaceReferencesTest, ReplaceReferencesTest) { |
| 45 | FunctionDef outer = FunctionDefHelper::Create( |
nothing calls this directly
no test coverage detected