| 37 | }; |
| 38 | |
| 39 | TEST_F(SwitchOpTest, Int32Success_6_s0) { |
| 40 | Initialize(DT_INT32); |
| 41 | AddInputFromArray<int32>(TensorShape({6}), {1, 2, 3, 4, 5, 6}); |
| 42 | AddInputFromArray<bool>(TensorShape({}), {false}); |
| 43 | TF_ASSERT_OK(RunOpKernel()); |
| 44 | Tensor expected(allocator(), DT_INT32, TensorShape({6})); |
| 45 | test::FillValues<int32>(&expected, {1, 2, 3, 4, 5, 6}); |
| 46 | test::ExpectTensorEqual<int32>(expected, *GetOutput(0)); |
| 47 | EXPECT_EQ(nullptr, GetOutput(1)); |
| 48 | } |
| 49 | |
| 50 | TEST_F(SwitchOpTest, Int32Success_6_s1) { |
| 51 | Initialize(DT_INT32); |
nothing calls this directly
no test coverage detected