Class: Mutineer::Baseline::Delta

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(legacy_matches: 0) ⇒ void

Parameters:

  • legacy_matches (Integer) (defaults to: 0) —

    survivors matched only through an old-format id.



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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of score_drop



36
37
38
# File 'lib/mutineer/baseline.rb', line 36

def score_drop
  @score_drop
end