| 83 | }; |
| 84 | |
| 85 | TEST_F(FlatbufferConversionsTest, ParseBadSqueeze) { |
| 86 | const Operator* op = BuildTestOperator( |
| 87 | BuiltinOptions_SqueezeOptions, CreateSqueezeOptions(builder_).Union()); |
| 88 | void* output_data = nullptr; |
| 89 | EXPECT_NE(kTfLiteOk, ParseOpData(op, BuiltinOperator_SQUEEZE, &mock_reporter_, |
| 90 | &mock_allocator_, &output_data)); |
| 91 | EXPECT_THAT(mock_reporter_.GetAsString(), |
| 92 | ::testing::ContainsRegex( |
| 93 | "Input array not provided for operation 'squeeze'")); |
| 94 | } |
| 95 | |
| 96 | TEST_F(FlatbufferConversionsTest, ParseBadReshape) { |
| 97 | const Operator* op = BuildTestOperator( |
nothing calls this directly
no test coverage detected