(t *testing.T)
| 1880 | } |
| 1881 | |
| 1882 | func TestHeadOptionsUseXOR2FloatEncoding(t *testing.T) { |
| 1883 | t.Parallel() |
| 1884 | |
| 1885 | opts := DefaultHeadOptions() |
| 1886 | require.False(t, opts.UseXOR2FloatEncoding(), "default must be XOR, not XOR2") |
| 1887 | |
| 1888 | opts.FloatChunkEncoding.Store(uint32(chunkenc.EncXOR2)) |
| 1889 | require.True(t, opts.UseXOR2FloatEncoding()) |
| 1890 | |
| 1891 | opts.FloatChunkEncoding.Store(uint32(chunkenc.EncXOR)) |
| 1892 | require.False(t, opts.UseXOR2FloatEncoding()) |
| 1893 | |
| 1894 | // EncNone (zero value) must not be treated as XOR2. |
| 1895 | opts.FloatChunkEncoding.Store(uint32(chunkenc.EncNone)) |
| 1896 | require.False(t, opts.UseXOR2FloatEncoding(), "EncNone must not be treated as XOR2") |
| 1897 | } |
| 1898 | |
| 1899 | func TestDefaultOptionsFloatChunkEncoding(t *testing.T) { |
| 1900 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…