Sha256: e64ca5ae9c88f5358d371692f3ea3731ad0654975e6ad598f30bdbd835e537cc

Contents?: true

Size: 462 Bytes

Versions: 11

Compression:

Stored size: 462 Bytes

Contents

module Minitest
  module RelativePosition
    TEST_PADDING = 2
    TEST_SIZE = 63
    MARK_SIZE = 5
    INFO_PADDING = 8

    private

    def print_with_info_padding(line)
      puts pad(line, INFO_PADDING)
    end

    def pad(str, size = INFO_PADDING)
      ' ' * size + str
    end

    def pad_mark(str)
      "%#{MARK_SIZE}s" % str
    end

    def pad_test(str)
      pad("%-#{TEST_SIZE}s" % str, TEST_PADDING)
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
minitest-reporters-1.3.6 lib/minitest/relative_position.rb
nullifyable-0.1.0 vendor/bundle/gems/minitest-reporters-1.3.5/lib/minitest/relative_position.rb
minitest-reporters-1.3.5 lib/minitest/relative_position.rb
minitest-reporters-1.3.5.beta1 lib/minitest/relative_position.rb
minitest-reporters-1.3.4 lib/minitest/relative_position.rb
minitest-reporters-1.3.3 lib/minitest/relative_position.rb
minitest-reporters-1.3.2 lib/minitest/relative_position.rb
minitest-reporters-1.3.2.beta2 lib/minitest/relative_position.rb
minitest-reporters-1.3.2.beta1 lib/minitest/relative_position.rb
minitest-reporters-1.3.1 lib/minitest/relative_position.rb
minitest-reporters-1.3.1.beta1 lib/minitest/relative_position.rb