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
|
# @api private
|
||||||
#
|
#
|
||||||
def report(env)
|
def report(env)
|
||||||
format.write_report(env, output)
|
Printer::EnvResult.run(output, env)
|
||||||
self
|
self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -25,19 +25,6 @@ module Mutant
|
||||||
#
|
#
|
||||||
abstract_method :progress
|
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
|
# Output abstraction to decouple tty? from buffer
|
||||||
class Output
|
class Output
|
||||||
include Concord.new(:tty, :buffer)
|
include Concord.new(:tty, :buffer)
|
||||||
|
|
Loading…
Reference in a new issue