MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / TEST_F

Function TEST_F

tests/integration/bit_pack_unpack_test.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
66TEST_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 );

Callers

nothing calls this directly

Calls 8

ip16_fxu1_avxFunction · 0.85
ip64_fxu2_avxFunction · 0.85
ip64_fxu3_avxFunction · 0.85
ip16_fxu4_avxFunction · 0.85
ip64_fxu5_avxFunction · 0.85
ip64_fxu6_avxFunction · 0.85
ip64_fxu7_avxFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected