Sha256: 04d8351af03f7a9bdcc8de23477d4a1108b5266c978988b9b41ebe4cdcbf8b45

Contents?: true

Size: 640 Bytes

Versions: 5

Compression:

Stored size: 640 Bytes

Contents

module Mutant
  class Reporter
    # Null reporter
    Null = Class.new(self) do
      # Report subject
      #
      # @param [Subject] subject
      #
      # @return [self]
      #
      # @api private
      #
      def subject(*)
        self
      end

      # Report mutation
      #
      # @param [Mutation] mutation
      #
      # @return [self]
      #
      # @api private
      #
      def mutation(*)
        self
      end

      # Report killer
      #
      # @param [Killer] killer
      #
      # @return [self]
      #
      # @api private
      #
      def killer(*)
        self
      end
    end.new.freeze
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mutant-0.2.4 lib/mutant/reporter/null.rb
mutant-0.2.3 lib/mutant/reporter/null.rb
mutant-0.2.2 lib/mutant/reporter/null.rb
mutant-0.2.1 lib/mutant/reporter/null.rb
mutant-0.2.0 lib/mutant/reporter/null.rb