Sha256: 5d3acef204d481616c088c0337ccdee890479ebf40166cb2505a10035a0f940e

Contents?: true

Size: 1.21 KB

Versions: 13

Compression:

Stored size: 1.21 KB

Contents

module Mutant
  # Abstract reporter
  class Reporter
    include Adamantium::Flat, AbstractType

    # Report subject
    #
    # @param [Subject] subject
    #
    # @return [self]
    #
    # @api private
    #
    abstract_method :subject

    # Report mutation
    #
    # @param [Mutation] mutation
    #
    # @return [self]
    #
    # @api private
    #
    abstract_method :mutation

    # Report notice
    #
    # @param [String] notice
    #
    # @return [self]
    #
    # @api private
    #
    abstract_method :notice

    # Report killer
    #
    # @param [Killer] killer
    #
    # @return [self]
    #
    # @api private
    #
    abstract_method :killer

    # Report config
    # 
    # @param [Mutant::Config] config
    #
    # @return [self]
    #
    # @api private
    #
    abstract_method :config

    # Return output stream
    #
    # @return [IO]
    #
    # @api private
    #
    abstract_method :output_stream

    # Return error stream
    #
    # @return [IO]
    #
    # @api private
    #
    abstract_method :error_stream

  private

    # Initialize reporter
    #
    # @param [Config] config
    #
    # @api private
    #
    def initialize(config)
      @config = config
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mutant-0.2.20 lib/mutant/reporter.rb
mutant-0.2.17 lib/mutant/reporter.rb
mutant-0.2.16 lib/mutant/reporter.rb
mutant-0.2.15 lib/mutant/reporter.rb
mutant-0.2.14 lib/mutant/reporter.rb
mutant-0.2.13 lib/mutant/reporter.rb
mutant-0.2.12 lib/mutant/reporter.rb
mutant-0.2.11 lib/mutant/reporter.rb
mutant-0.2.9 lib/mutant/reporter.rb
mutant-0.2.8 lib/mutant/reporter.rb
mutant-0.2.7 lib/mutant/reporter.rb
mutant-0.2.6 lib/mutant/reporter.rb
mutant-0.2.5 lib/mutant/reporter.rb