| 51 | }; |
| 52 | |
| 53 | TEST_F(SimpleIfTest, TestIfTrue) { |
| 54 | interpreter_->typed_input_tensor<bool>(0)[0] = true; |
| 55 | ASSERT_EQ(interpreter_->Invoke(), kTfLiteOk); |
| 56 | TfLiteTensor* output = interpreter_->tensor(interpreter_->outputs()[0]); |
| 57 | CheckIntTensor(output, {1, 2}, {6, 9}); |
| 58 | } |
| 59 | |
| 60 | TEST_F(SimpleIfTest, TestIfFalse) { |
| 61 | interpreter_->typed_input_tensor<bool>(0)[0] = false; |
nothing calls this directly
no test coverage detected