Class: Pinspec::Emit::StabilityFilter::Report
- Inherits:
-
Data
- Object
- Data
- Pinspec::Emit::StabilityFilter::Report
- Defined in:
- lib/pinspec/emit/stability_filter.rb
Instance Attribute Summary collapse
-
#compared_fields ⇒ Object
readonly
Returns the value of attribute compared_fields.
-
#runs ⇒ Object
readonly
Returns the value of attribute runs.
-
#verdicts ⇒ Object
readonly
Returns the value of attribute verdicts.
Instance Method Summary collapse
Instance Attribute Details
#compared_fields ⇒ Object (readonly)
Returns the value of attribute compared_fields
26 27 28 |
# File 'lib/pinspec/emit/stability_filter.rb', line 26 def compared_fields @compared_fields end |
#runs ⇒ Object (readonly)
Returns the value of attribute runs
26 27 28 |
# File 'lib/pinspec/emit/stability_filter.rb', line 26 def runs @runs end |
#verdicts ⇒ Object (readonly)
Returns the value of attribute verdicts
26 27 28 |
# File 'lib/pinspec/emit/stability_filter.rb', line 26 def verdicts @verdicts end |
Instance Method Details
#causes ⇒ Object
35 36 37 |
# File 'lib/pinspec/emit/stability_filter.rb', line 35 def causes unstable.group_by(&:cause).transform_values(&:size) end |
#nothing_to_pin? ⇒ Boolean
39 40 41 |
# File 'lib/pinspec/emit/stability_filter.rb', line 39 def nothing_to_pin? stable.empty? end |
#stable ⇒ Object
27 28 29 |
# File 'lib/pinspec/emit/stability_filter.rb', line 27 def stable verdicts.select(&:stable?) end |
#unstable ⇒ Object
31 32 33 |
# File 'lib/pinspec/emit/stability_filter.rb', line 31 def unstable verdicts.reject(&:stable?) end |