| 24 | namespace { |
| 25 | |
| 26 | TEST(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 | |
| 36 | TEST(ConvertVectorToTfLiteIntArray, TestWithEmptyVector) { |
| 37 | std::vector<int> input; |
nothing calls this directly
no test coverage detected