class SimpleCov::Formatter::TWada

Constants

VERSION

Public Instance Methods

format(result) click to toggle source
# File lib/simplecov/t_wada.rb, line 32
      def format(result)
        puts <<~STD
          Coverage report generated for #{result.command_name}.
          #{result.covered_lines}/#{result.total_lines} LOC (#{result.covered_percent}%) covered at #{result.created_at}.
        STD

        return if result.covered_percent >= (::SimpleCov.minimum_coverage || 0)

        puts <<~EOL
          #{@@aa}
          #{@@message}
                                EOL
      end