MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/lite/delegates/flex/util_test.cc:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62TEST(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
75TEST(UtilTest, CopyShapeAndType) {
76 TestContext context;

Callers

nothing calls this directly

Calls 9

ConvertStatusFunction · 0.85
InternalFunction · 0.85
CopyShapeAndTypeFunction · 0.85
GetTensorFlowLiteTypeFunction · 0.85
GetTensorFlowDataTypeFunction · 0.70
StatusClass · 0.50
TensorClass · 0.50
clearMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected