public abstract static class MetamorphicTestCaseFactory.BuilderBase<B extends MetamorphicTestCaseFactory.BuilderBase<B,X,I,O,R>,X,I,O,R> extends Object
Modifier and Type | Field and Description |
---|---|
protected Predicate<R> |
checker |
protected Function<I,O> |
fut |
protected com.github.valid8j.metamor.MetamorphicTestCaseFactory.BuilderBase.InputResolverSequenceFactoryProvider<X,I,O> |
inputResolverSequenceFactoryProvider |
protected String |
inputVariableName |
protected String |
ioVariableName |
protected String |
outputVariableName |
protected String |
sourceVariableName |
Modifier | Constructor and Description |
---|---|
protected |
BuilderBase() |
protected com.github.valid8j.metamor.MetamorphicTestCaseFactory.BuilderBase.InputResolverSequenceFactoryProvider<X,I,O> inputResolverSequenceFactoryProvider
protected String sourceVariableName
protected String inputVariableName
protected String ioVariableName
protected String outputVariableName
protected <BB extends MetamorphicTestCaseFactory.BuilderBase<BB,XX,I,O,RR>,XX,RR> BB newBuilder(Supplier<BB> constructor)
protected <BB extends MetamorphicTestCaseFactory.BuilderBase<BB,X,I,O,RR>,RR> BB newBuilderWithSpecifiedRelationType(Supplier<BB> constructor)
protected <BB extends MetamorphicTestCaseFactory.BuilderBase<BB,XX,I,O,R>,XX> BB newBuilderWithSpecifiedSourceType(Supplier<BB> constructor)
public B inputResolverSequenceFactory(InputResolver.Sequence.Factory<X,I,O> inputResolverSequenceFactory)
public B addInputResolvers(Function<InputResolver.Sequence.Factory.Builder<X,I,O>,InputResolver.Sequence.Factory<X,I,O>> b)
public B addInputResolvers(String variableName, Function<InputResolver.Sequence.Factory.Builder<X,I,O>,InputResolver.Sequence.Factory<X,I,O>> b)
public abstract <BB extends MetamorphicTestCaseFactory.BuilderBase<BB,XX,I,O,R>,XX> BB sourceValueType(XX sourceType)
public <BB extends MetamorphicTestCaseFactory.BuilderBase<BB,XX,I,O,R>,XX> BB sourceValueType(Class<XX> sourceType)
Let this object know the source type.
BB
- The type of this object.XX
- The type of the input value.sourceType
- The type of the source value.xpublic <BB extends MetamorphicTestCaseFactory.BuilderBase<BB,I,I,O,R>> BB makeInputResolversEndomorphic()
Let this factory know that the source value and the input values are the same type.
BB
- The type of this builder.public B fut(Function<I,O> fut)
Specifies a function under test.
fut
- A function under testpublic <P> MetamorphicTestCaseFactoryWithPreformer.Builder<X,I,O,P,R> withPreformer()
public MetamorphicTestCaseFactory.Builder<X,I,O,R> skipPreformer()
public abstract <P> MetamorphicTestCaseFactoryWithPreformer.Builder<X,I,O,P,R> preformer(Function<IoPair<I,O>,P> preformer)
public <P> MetamorphicTestCaseFactoryWithPreformer.Builder<X,I,O,P,R> preformer(String preformerName, Function<IoPair<I,O>,P> preformer)
public abstract MetamorphicTestCaseFactory<X,I,O,R> build()
Copyright © 2024. All rights reserved.