| 60 | } |
| 61 | |
| 62 | TEST(UtilTest, ConvertStatus) { |
| 63 | TestContext context; |
| 64 | context.ReportError = ReportError; |
| 65 | |
| 66 | EXPECT_EQ(ConvertStatus(&context, tensorflow::errors::Internal("Some Error")), |
| 67 | kTfLiteError); |
| 68 | EXPECT_EQ(context.error, "Some Error"); |
| 69 | |
| 70 | context.error.clear(); |
| 71 | EXPECT_EQ(ConvertStatus(&context, tensorflow::Status()), kTfLiteOk); |
| 72 | EXPECT_TRUE(context.error.empty()); |
| 73 | } |
| 74 | |
| 75 | TEST(UtilTest, CopyShapeAndType) { |
| 76 | TestContext context; |
nothing calls this directly
no test coverage detected