mirror of https://github.com/apache/druid.git
Simplify CompressedVSizeColumnarIntsSupplierTest (#10003)
The parameters generator uses CompressionStrategy.noNoneValues() instead of CompressionStrategyTest.compressionStrategies() which wrapped each strategy in a single element array. This improves readability of the test.
This commit is contained in:
parent
d4d0004338
commit
7282e2f2f9
|
@ -56,13 +56,8 @@ public class CompressedVSizeColumnarIntsSupplierTest extends CompressionStrategy
|
|||
@Parameterized.Parameters(name = "{index}: compression={0}, byteOrder={1}")
|
||||
public static Iterable<Object[]> compressionStrategies()
|
||||
{
|
||||
final Iterable<CompressionStrategy> compressionStrategies = Iterables.transform(
|
||||
CompressionStrategyTest.compressionStrategies(),
|
||||
(Object[] input) -> (CompressionStrategy) input[0]
|
||||
);
|
||||
|
||||
Set<List<Object>> combinations = Sets.cartesianProduct(
|
||||
Sets.newHashSet(compressionStrategies),
|
||||
Sets.newHashSet(CompressionStrategy.noNoneValues()),
|
||||
Sets.newHashSet(ByteOrder.BIG_ENDIAN, ByteOrder.LITTLE_ENDIAN)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue