| 131 | |
| 132 | template <typename Int> |
| 133 | void TestUnpackZeros(UnpackFunc<Int> unpack, const UnpackOptions& opts) { |
| 134 | const auto num_bytes = GetNumBytes(opts.batch_size, opts.bit_width, opts.bit_offset); |
| 135 | |
| 136 | const std::vector<uint8_t> packed(static_cast<std::size_t>(num_bytes), uint8_t{0}); |
| 137 | const auto unpacked = UnpackValues(packed.data(), opts, unpack); |
| 138 | |
| 139 | const std::vector<Int> expected(static_cast<std::size_t>(opts.batch_size), Int{0}); |
| 140 | EXPECT_EQ(unpacked, expected); |
| 141 | } |
| 142 | |
| 143 | template <typename Int> |
| 144 | void TestUnpackOnes(UnpackFunc<Int> unpack, const UnpackOptions& opts) { |
nothing calls this directly
no test coverage detected