Sha256: a453ebc107369abfff653c371e697ffca5c6b993c4752420951ee1e3e8d40ede

Contents?: true

Size: 704 Bytes

Versions: 8

Compression:

Stored size: 704 Bytes

Contents

module Mutest
  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 # Mutest

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mutest-0.0.9 lib/mutest/reporter/cli/printer/mutation_progress_result.rb
mutest-0.0.8 lib/mutest/reporter/cli/printer/mutation_progress_result.rb
mutest-0.0.7 lib/mutest/reporter/cli/printer/mutation_progress_result.rb
mutest-0.0.6 lib/mutest/reporter/cli/printer/mutation_progress_result.rb
mutest-0.0.5 lib/mutest/reporter/cli/printer/mutation_progress_result.rb
mutest-0.0.4 lib/mutest/reporter/cli/printer/mutation_progress_result.rb
mutest-0.0.3 lib/mutest/reporter/cli/printer/mutation_progress_result.rb
mutest-0.0.2 lib/mutest/reporter/cli/printer/mutation_progress_result.rb