BisectPlan

data class BisectPlan(val green: String, val red: String, val greenSha256: String, val redSha256: String, val flips: List<Flip>, val trials: List<Trial> = emptyList())(source)

A bisection over the static attribute differences of a green and a red capsule, run by hand or by a script: each pending set is a test of the green environment with those attributes set to their red values. The plan is the whole state; state replays Ddmin over the recorded trials and stops at the first set that has no recorded outcome. The full set is the red environment and counts as failing; the empty set is the green one and passes.

Constructors

Link copied to clipboard
constructor(green: String, red: String, greenSha256: String, redSha256: String, flips: List<Flip>, trials: List<Trial> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val red: String
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun apply(step: Int, outcome: TrialOutcome): BisectApply

Records outcome for step, which must be the pending step; repeating the last recorded outcome is a no-op and a different one is refused.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard