Sha256: d2ec080b2bee73c764b64af35fe22c171466c0c39a1039acdc3fa055685df746

Contents?: true

Size: 817 Bytes

Versions: 1

Compression:

Stored size: 817 Bytes

Contents

module Mutant
  class Reporter
    # Reporter to trace report calls, used as a spec adapter
    class Trace
      include Concord::Public.new(:progress_calls, :report_calls)

      # Return new trace reporter
      #
      # @return [Tracer]
      #
      # @api private
      #
      def self.new
        super([], [])
      end

      # Report object
      #
      # @param [Object] object
      #
      # @return [self]
      #
      # @api private
      #
      def report(object)
        report_calls << object
        self
      end

      # Report new progress on object
      #
      # @param [Object] object
      #
      # @return [self]
      #
      # @api private
      #
      def progress(object)
        progress_calls << object
        self
      end

    end # Tracker
  end # reporter
end # Mutant

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mutant-0.5.24 lib/mutant/reporter/trace.rb