Sha256: fd7e38b807857562b6800310377c7521bcc0b26dd4d9c46926ac92b959486de4

Contents?: true

Size: 702 Bytes

Versions: 6

Compression:

Stored size: 702 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]
          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

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.8.16 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.15 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.14 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.13 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.12 lib/mutant/reporter/cli/printer/mutation_progress_result.rb
mutant-0.8.11 lib/mutant/reporter/cli/printer/mutation_progress_result.rb