| 58 | void ExpectIpNear(float result) const { |
| 59 | float expected = CalculateExpected(); |
| 60 | ASSERT_NEAR(expected, result, std::max(0.1f, std::abs(expected) * 1e-6f)); |
| 61 | } |
| 62 | }; |
| 63 | |
| 64 | // --- Test Cases --- |
| 65 | |
| 66 | TEST_F(BitPackUnpackTest, ExCode1Bit) { |
| 67 | PrepareData(1); // Set up for 1-bit |
| 68 | |
| 69 | // Run the AVX function |
| 70 | float result = rabitqlib::excode_ipimpl::ip16_fxu1_avx( |
| 71 | query.data(), compact_code.data(), dim |
| 72 | ); |
nothing calls this directly
no test coverage detected