concept
Controlled experiments
A controlled experiment changes a named factor while holding relevant variables steady. Hypothesis: in a fictional scheduler model, a candidate ranking policy never picks a node lacking enough CPU or memory. A positive control contains a feasible node; a negative control contains no feasible node, so the model must return no placement. A separate intentionally defective implementation that ranks before filtering should fail the negative control. That failure shows the test can detect this specific defect; it does not prove all defects are covered.
Formal Syntax & Structure
kubernetes syntaxkubernetes
Baseline vs candidate on identical fixturespositive control: at least one valid nodenegative control: no valid noderegression: feasible set unchanged across ranking variantsWorking Example
Example Snippetkubernetes
Run A: identical input hash, expected=c, actual=c -> PASSRun B: missing output -> INCONCLUSIVERun C: expected=no placement, actual=a -> FAIL