Sha256: cdf2839a1269afc25dfe5552c3da5d752cf5e7d53ea455b445bf3406a1a32058

Contents?: true

Size: 597 Bytes

Versions: 11

Compression:

Stored size: 597 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

          def char(char)
            output.write(colorize(status_color, char))
          end
        end # MutationProgressResult
      end # Printer
    end # CLI
  end # Reporter
end # Mutant

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mutant-0.10.6 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.10.5 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.10.4 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.10.1 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.10.0 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.14 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.13 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.12 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.11 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.10 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.9.9 lib/mutant/reporter/cli/printer/mutation_progress_result.rb