Package dev.dokimos.core.gate
Class GateConfig.Builder
java.lang.Object
dev.dokimos.core.gate.GateConfig.Builder
- Enclosing class:
GateConfig
Builder for
GateConfig.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalpha(double alpha) bootstrapIterations(int iterations) bootstrapPasses(boolean bootstrapPasses) build()Builds the configuration.failOnRegression(boolean failOnRegression) failOnRemovedItems(boolean failOnRemovedItems) pairing(GateConfig.Pairing pairing) permutationIterations(int iterations) seed(long seed) severityMargin(double margin) updateBaseline(boolean updateBaseline)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
alpha
- Parameters:
alpha- the significance level @return this builder
-
seed
- Parameters:
seed- the RNG seed @return this builder
-
permutationIterations
- Parameters:
iterations- the permutation-test iteration count @return this builder
-
bootstrapIterations
- Parameters:
iterations- the bootstrap iteration count @return this builder
-
severityMargin
- Parameters:
margin- the guard-2 localized-severity FAIL threshold @return this builder
-
pairing
- Parameters:
pairing- the pairing strategy @return this builder
-
failOnRegression
- Parameters:
failOnRegression- whether a regression fails the gate @return this builder
-
failOnRemovedItems
- Parameters:
failOnRemovedItems- whether a removed item fails the gate @return this builder
-
onRemovedEvaluator
- Parameters:
policy- the removed-evaluator policy @return this builder
-
bootstrapPasses
- Parameters:
bootstrapPasses- whether a missing-baseline bootstrap passes after writing (defaulttrue);falsefails once until the new baseline is reviewed and committed- Returns:
- this builder
-
updateBaseline
- Parameters:
updateBaseline- whether to overwrite the baseline and pass @return this builder
-
build
Builds the configuration.- Returns:
- a new
GateConfig - Throws:
IllegalArgumentException- if any value is out of range
-