free_mutant/lib/mutant/reporter.rb

41 lines
686 B
Ruby
Raw Normal View History

module Mutant
# Abstract base class for reporters
class Reporter
2014-07-17 09:59:25 -04:00
include AbstractType
# Write warning message
#
# @param [String] message
#
# @return [self]
abstract_method :warn
# Report start
#
# @param [Env] env
#
# @return [self]
abstract_method :start
2014-07-17 09:59:25 -04:00
# Report collector state
#
2014-07-17 09:59:25 -04:00
# @param [Runner::Collector] collector
#
# @return [self]
abstract_method :report
# Report progress on object
#
# @param [Object] object
#
# @return [self]
abstract_method :progress
# The reporter delay
#
# @return [Float]
abstract_method :delay
2013-06-14 14:54:02 -04:00
end # Reporter
end # Mutant