Class: Mutant::Reporter::CLI::Report::Mutation
- Inherits:
-
Mutant::Reporter::CLI::Report
- Object
- Printer
- Mutant::Reporter::CLI::Report
- Mutant::Reporter::CLI::Report::Mutation
- Defined in:
- lib/mutant/reporter/cli/report/mutation.rb
Overview
Reporter for mutations
Constant Summary collapse
- DIFF_ERROR_MESSAGE =
'BUG: Mutation NOT resulted in exactly one diff. Please report a reproduction!'.freeze
- MAP =
{ Mutant::Mutation::Evil => :evil_details, Mutant::Mutation::Neutral => :neutral_details, Mutant::Mutation::Noop => :noop_details }.freeze
- NEUTRAL_MESSAGE =
"--- Neutral failure ---\n" \ "Original code was inserted unmutated. And the test did NOT PASS.\n" \ "Your tests do not pass initially or you found a bug in mutant / unparser.\n" \ "Subject AST:\n" \ "%s\n" \ "Unparsed Source:\n" \ "%s\n" \ "Test Reports: %d\n"
- NOOP_MESSAGE =
"---- Noop failure -----\n" \ "No code was inserted. And the test did NOT PASS.\n" \ "This is typically a problem of your specs not passing unmutated.\n" \ "Test Reports: %d\n"
- FOOTER =
'-----------------------'.freeze
Constants inherited from Printer
Instance Method Summary collapse
-
#run ⇒ self
private
Run report printer.
Methods inherited from Printer
Methods included from Delegator
Instance Method Details
#run ⇒ self
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.
Run report printer
45 46 47 48 49 50 |
# File 'lib/mutant/reporter/cli/report/mutation.rb', line 45 def run puts(mutation.identification) print_details puts(FOOTER) self end |