Class: Ibex::Impact::CoverageImpact
- Inherits:
-
Object
- Object
- Ibex::Impact::CoverageImpact
- Defined in:
- lib/ibex/impact/coverage_impact.rb
Overview
Selects separated runtime coverage reports for affected productions.
Instance Attribute Summary collapse
-
#reports ⇒ Object
readonly
: Array[Hash[Symbol, Object?]].
-
#status ⇒ Object
readonly
: String.
-
#warnings ⇒ Object
readonly
: Array.
Instance Method Summary collapse
-
#initialize(automaton, production_ids, reports) ⇒ CoverageImpact
constructor
A new instance of CoverageImpact.
- #to_h ⇒ Object
Constructor Details
#initialize(automaton, production_ids, reports) ⇒ CoverageImpact
Returns a new instance of CoverageImpact.
13 14 15 16 17 18 19 20 |
# File 'lib/ibex/impact/coverage_impact.rb', line 13 def initialize(automaton, production_ids, reports) @automaton = automaton @production_ids = production_ids.sort @warnings = [] @reports = select_reports(reports) @status = coverage_status(reports) freeze end |
Instance Attribute Details
#reports ⇒ Object (readonly)
: Array[Hash[Symbol, Object?]]
9 10 11 |
# File 'lib/ibex/impact/coverage_impact.rb', line 9 def reports @reports end |
#status ⇒ Object (readonly)
: String
8 9 10 |
# File 'lib/ibex/impact/coverage_impact.rb', line 8 def status @status end |
#warnings ⇒ Object (readonly)
: Array
10 11 12 |
# File 'lib/ibex/impact/coverage_impact.rb', line 10 def warnings @warnings end |
Instance Method Details
#to_h ⇒ Object
23 24 25 |
# File 'lib/ibex/impact/coverage_impact.rb', line 23 def to_h { status: @status, reports: @reports } end |