Simplify report printing
This commit is contained in:
parent
c7de9a24fb
commit
1681fa4511
2 changed files with 1 additions and 14 deletions
|
@ -71,7 +71,7 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def report(env)
|
||||
format.write_report(env, output)
|
||||
Printer::EnvResult.run(output, env)
|
||||
self
|
||||
end
|
||||
|
||||
|
|
|
@ -25,19 +25,6 @@ module Mutant
|
|||
#
|
||||
abstract_method :progress
|
||||
|
||||
# Write report
|
||||
#
|
||||
# @param [Result::Env] env
|
||||
# @param [IO] output
|
||||
#
|
||||
# @return [String]
|
||||
#
|
||||
# @api private
|
||||
#
|
||||
def write_report(env, output)
|
||||
Printer::EnvResult.run(output, env)
|
||||
end
|
||||
|
||||
# Output abstraction to decouple tty? from buffer
|
||||
class Output
|
||||
include Concord.new(:tty, :buffer)
|
||||
|
|
Loading…
Reference in a new issue