Class: Mutineer::Baseline::Delta
- Inherits:
-
Data
- Object
- Data
- Mutineer::Baseline::Delta
- Defined in:
- lib/mutineer/baseline.rb
Overview
The verdict of diffing a current run against the baseline.
new_survivors - current Result objects whose id is absent from
the baseline (the regressions to name).
fixed_survivors - baseline survivor hashes absent from the current run
(informational, never gates). Empty when either side
is diff-scoped: an out-of-scope baseline survivor was
never re-tested, so absence does not mean fixed.
score_drop - current score < baseline score - epsilon. nil on
either side skips the check, and a diff-scoped run
(scoped: true) never sets it (see #diff).
score_comparable - the two scores share a denominator (neither side was
diff-scoped and both are non-nil), so a consumer may
render them side by side. False means the score-drop
check was skipped, not that it passed.
regressed - any new survivors OR a score drop.
legacy_matches - current survivors found in an old-format baseline
(no summary.id_format) only through their old-format
id (#126). Non-zero means the baseline should be
regenerated; the CLI warns. Always 0 for a new-format
baseline.
Instance Attribute Summary collapse
-
#fixed_survivors ⇒ Object
readonly
Returns the value of attribute fixed_survivors.
-
#legacy_matches ⇒ Object
readonly
Returns the value of attribute legacy_matches.
-
#new_survivors ⇒ Object
readonly
Returns the value of attribute new_survivors.
-
#regressed ⇒ Object
readonly
Returns the value of attribute regressed.
-
#score_after ⇒ Object
readonly
Returns the value of attribute score_after.
-
#score_before ⇒ Object
readonly
Returns the value of attribute score_before.
-
#score_comparable ⇒ Object
readonly
Returns the value of attribute score_comparable.
-
#score_drop ⇒ Object
readonly
Returns the value of attribute score_drop.
Instance Method Summary collapse
- #initialize(legacy_matches: 0) ⇒ void constructor
Constructor Details
#initialize(legacy_matches: 0) ⇒ void
41 |
# File 'lib/mutineer/baseline.rb', line 41 def initialize(legacy_matches: 0, **) = super |
Instance Attribute Details
#fixed_survivors ⇒ Object (readonly)
Returns the value of attribute fixed_survivors
36 37 38 |
# File 'lib/mutineer/baseline.rb', line 36 def fixed_survivors @fixed_survivors end |
#legacy_matches ⇒ Object (readonly)
Returns the value of attribute legacy_matches
36 37 38 |
# File 'lib/mutineer/baseline.rb', line 36 def legacy_matches @legacy_matches end |
#new_survivors ⇒ Object (readonly)
Returns the value of attribute new_survivors
36 37 38 |
# File 'lib/mutineer/baseline.rb', line 36 def new_survivors @new_survivors end |
#regressed ⇒ Object (readonly)
Returns the value of attribute regressed
36 37 38 |
# File 'lib/mutineer/baseline.rb', line 36 def regressed @regressed end |
#score_after ⇒ Object (readonly)
Returns the value of attribute score_after
36 37 38 |
# File 'lib/mutineer/baseline.rb', line 36 def score_after @score_after end |
#score_before ⇒ Object (readonly)
Returns the value of attribute score_before
36 37 38 |
# File 'lib/mutineer/baseline.rb', line 36 def score_before @score_before end |
#score_comparable ⇒ Object (readonly)
Returns the value of attribute score_comparable
36 37 38 |
# File 'lib/mutineer/baseline.rb', line 36 def score_comparable @score_comparable end |
#score_drop ⇒ Object (readonly)
Returns the value of attribute score_drop
36 37 38 |
# File 'lib/mutineer/baseline.rb', line 36 def score_drop @score_drop end |