Sha256: bb6f2ad0f46f201b579fadebf1e1be994566aab453b3c5a2c9ad7699055967b7

Contents?: true

Size: 827 Bytes

Versions: 4

Compression:

Stored size: 827 Bytes

Contents

module Mutant
  class Reporter
    class CLI
      class Progress

        # Mutation progress reporter
        class Mutation < self

          handle(Runner::Mutation)

          SUCCESS = '.'.freeze
          FAILURE = 'F'.freeze

          # Run printer
          #
          # @return [undefined]
          #
          # @api private
          #
          def run
            char(success? ? SUCCESS : FAILURE)
          end

        private

          # Write colorized char
          #
          # @param [String] char
          #
          # @return [undefined]
          #
          # @api private
          #
          def char(char)
            output.write(colorize(status_color, char))
            output.flush
          end

        end # Mutation
      end # Progress
    end # CLI
  end # Reporter
end # Mutant

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mutant-0.5.16 lib/mutant/reporter/cli/progress/mutation.rb
mutant-0.5.15 lib/mutant/reporter/cli/progress/mutation.rb
mutant-0.5.14 lib/mutant/reporter/cli/progress/mutation.rb
mutant-0.5.13 lib/mutant/reporter/cli/progress/mutation.rb