Class: Evilution::Reporter::CLI::MetricsBlock Private
- Inherits:
-
Object
- Object
- Evilution::Reporter::CLI::MetricsBlock
- Defined in:
- lib/evilution/reporter/cli/metrics_block.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- DEFAULT_LINES =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[ Evilution::Reporter::CLI::LineFormatters::Mutations.new, Evilution::Reporter::CLI::LineFormatters::Score.new, Evilution::Reporter::CLI::LineFormatters::ErrorRateWarning.new, Evilution::Reporter::CLI::LineFormatters::UnresolvedRateWarning.new, Evilution::Reporter::CLI::LineFormatters::Duration.new, Evilution::Reporter::CLI::LineFormatters::Efficiency.new, Evilution::Reporter::CLI::LineFormatters::PeakMemory.new ].freeze
Instance Method Summary collapse
- #call(summary) ⇒ Object private
-
#initialize(lines: DEFAULT_LINES) ⇒ MetricsBlock
constructor
private
A new instance of MetricsBlock.
Constructor Details
#initialize(lines: DEFAULT_LINES) ⇒ MetricsBlock
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of MetricsBlock.
23 24 25 |
# File 'lib/evilution/reporter/cli/metrics_block.rb', line 23 def initialize(lines: DEFAULT_LINES) @lines = lines end |
Instance Method Details
#call(summary) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 |
# File 'lib/evilution/reporter/cli/metrics_block.rb', line 27 def call(summary) @lines.filter_map { |line| line.format(summary) } end |