Sha256: 22de56f324e44b877120e208a79ea2a32ff71ac7fcf2d329b63e1cd69b0d18fc

Contents?: true

Size: 719 Bytes

Versions: 10

Compression:

Stored size: 719 Bytes

Contents

# frozen_string_literal: true

module Mutant
  class Reporter
    class CLI
      class Printer
        # Printer for mutation progress results
        class MutationProgressResult < self
          SUCCESS = '.'
          FAILURE = 'F'

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

        private

          # Write colorized char
          #
          # @param [String] char
          #
          # @return [undefined]
          def char(char)
            output.write(colorize(status_color, char))
          end
        end # MutationProgressResult
      end # Printer
    end # CLI
  end # Reporter
end # Mutant

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mutant-0.9.8 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.7 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.6 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.5 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.4 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.3 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.2 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.1 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.0 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.24 lib/mutant/reporter/cli/printer/mutation_progress_result.rb