Class: AbideDevUtils::CEM::CoverageReport::BenchmarkReport
- Inherits:
-
Object
- Object
- AbideDevUtils::CEM::CoverageReport::BenchmarkReport
- Defined in:
- lib/abide_dev_utils/cem/coverage_report.rb
Overview
Creates ReportOutput objects based on the given Benchmark
Instance Method Summary collapse
- #basic_coverage(level: nil, profile: nil) ⇒ Object
- #controls_in_mapping_data ⇒ Object
- #controls_in_resource_data ⇒ Object
-
#initialize(benchmark) ⇒ BenchmarkReport
constructor
A new instance of BenchmarkReport.
Constructor Details
#initialize(benchmark) ⇒ BenchmarkReport
Returns a new instance of BenchmarkReport.
289 290 291 |
# File 'lib/abide_dev_utils/cem/coverage_report.rb', line 289 def initialize(benchmark) @benchmark = benchmark end |
Instance Method Details
#basic_coverage(level: nil, profile: nil) ⇒ Object
301 302 303 304 305 |
# File 'lib/abide_dev_utils/cem/coverage_report.rb', line 301 def basic_coverage(level: nil, profile: nil) map_type = @benchmark.map_type(controls_in_resource_data[0]) rules_in_map = @benchmark.rules_in_map(map_type, level: level, profile: profile) AbideDevUtils::CEM::CoverageReport::ReportOutput.new(@benchmark, controls_in_resource_data, rules_in_map) end |
#controls_in_mapping_data ⇒ Object
297 298 299 |
# File 'lib/abide_dev_utils/cem/coverage_report.rb', line 297 def controls_in_mapping_data @controls_in_mapping_data ||= find_controls_in_mapping_data end |
#controls_in_resource_data ⇒ Object
293 294 295 |
# File 'lib/abide_dev_utils/cem/coverage_report.rb', line 293 def controls_in_resource_data @controls_in_resource_data ||= find_controls_in_resource_data end |