| 23 | struct MyRandomPODType {}; |
| 24 | |
| 25 | TEST(AbiTest, AbiDemangleTest) { |
| 26 | EXPECT_EQ(port::MaybeAbiDemangle(MakeTypeIndex<int>().name()), "int"); |
| 27 | |
| 28 | EXPECT_EQ(port::MaybeAbiDemangle(MakeTypeIndex<MyRandomPODType>().name()), |
| 29 | "tensorflow::MyRandomPODType"); |
| 30 | |
| 31 | EXPECT_EQ( |
| 32 | port::MaybeAbiDemangle("help! i'm caught in a C++ mangle factoryasdf"), |
| 33 | "help! i'm caught in a C++ mangle factoryasdf"); |
| 34 | } |
| 35 | |
| 36 | } // namespace tensorflow |
nothing calls this directly
no test coverage detected