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

Function TEST

tensorflow/lite/util_test.cc:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace {
25
26TEST(ConvertVectorToTfLiteIntArray, TestWithVector) {
27 std::vector<int> input = {1, 2};
28 TfLiteIntArray* output = ConvertVectorToTfLiteIntArray(input);
29 ASSERT_NE(output, nullptr);
30 EXPECT_EQ(output->size, 2);
31 EXPECT_EQ(output->data[0], 1);
32 EXPECT_EQ(output->data[1], 2);
33 TfLiteIntArrayFree(output);
34}
35
36TEST(ConvertVectorToTfLiteIntArray, TestWithEmptyVector) {
37 std::vector<int> input;

Callers

nothing calls this directly

Calls 3

TfLiteIntArrayFreeFunction · 0.85
IsFlexOpFunction · 0.85

Tested by

no test coverage detected