Sha256: 64143b69b38227ee80a7770aaada89e158345b1b8fc7bbe4233422309406f0a1

Contents?: true

Size: 777 Bytes

Versions: 8

Compression:

Stored size: 777 Bytes

Contents

module Mutant
  class Reporter
    class CLI
      class  Printer
        # Printer for mutation progress results
        class MutationProgressResult < self
          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))
          end
        end # MutationProgressResult
      end # Printer
    end # CLI
  end # Reporter
end # Mutant

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutant-0.8.8 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.7 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.6 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.5 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.4 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.3 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.2 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.1 lib/mutant/reporter/cli/printer/mutation_progress_result.rb