public class CombineFnTester
extends java.lang.Object
CombineFns
. Ensures that the Combine.CombineFn
gives
correct results across various permutations and shardings of the input.Constructor and Description |
---|
CombineFnTester() |
Modifier and Type | Method and Description |
---|---|
static <InputT,AccumT,OutputT> |
testCombineFn(Combine.CombineFn<InputT,AccumT,OutputT> fn,
java.util.List<InputT> input,
Matcher<? super OutputT> matcher) |
static <InputT,AccumT,OutputT> |
testCombineFn(Combine.CombineFn<InputT,AccumT,OutputT> fn,
java.util.List<InputT> input,
OutputT expected)
Tests that the the
Combine.CombineFn , when applied to the provided input, produces the provided
output. |
public static <InputT,AccumT,OutputT> void testCombineFn(Combine.CombineFn<InputT,AccumT,OutputT> fn, java.util.List<InputT> input, OutputT expected)
Combine.CombineFn
, when applied to the provided input, produces the provided
output. Tests a variety of permutations of the input.public static <InputT,AccumT,OutputT> void testCombineFn(Combine.CombineFn<InputT,AccumT,OutputT> fn, java.util.List<InputT> input, Matcher<? super OutputT> matcher)