| 574 | #ifdef GTEST_HAS_DEATH_TEST |
| 575 | template <TensorType tensor_dtype> |
| 576 | void ZeroNotInQuantizationRangeV2() { |
| 577 | // The test_util and actual quantization code currently ensure that the range |
| 578 | // must include zero, but if that ever changes, this test will catch it. |
| 579 | typedef PadV2OpConstModel<float> f; |
| 580 | EXPECT_DEATH(f({tensor_dtype, {1, 2, 2, 1}, 1.0, 2.0}, {4, 2}, |
| 581 | {0, 0, 1, 1, 1, 1, 0, 0}, 0, {tensor_dtype, {}, 1.0, 2.0}), |
| 582 | ".*Check failed: f_min <= 0.*"); |
| 583 | } |
| 584 | |
| 585 | TEST_F(QuantizedPadV2OpTest, UInt8ZeroNotInQuantizationRange) { |
| 586 | ZeroNotInQuantizationRangeV2<TensorType_UINT8>(); |
nothing calls this directly
no test coverage detected