| 198 | using SignExtendedValueTest = ::testing::TestWithParam<ExtendedValueTestCase>; |
| 199 | |
| 200 | TEST_P(SignExtendedValueTest, SignExtendValue) { |
| 201 | const auto& tc = GetParam(); |
| 202 | auto result = SignExtendValue(tc.input, tc.bit_width); |
| 203 | EXPECT_EQ(result, tc.expected_result); |
| 204 | } |
| 205 | INSTANTIATE_TEST_SUITE_P( |
| 206 | SignExtendValue, SignExtendedValueTest, |
| 207 | ::testing::Values(ExtendedValueTestCase{1, 1, 0xFFFFFFFF}, |
nothing calls this directly
no test coverage detected