increments/circleci-coverage_reporter

View on GitHub
lib/circleci/coverage_reporter/result.rb

Summary

Maintainability
A
0 mins
Test Coverage
module CircleCI
  module CoverageReporter
    # @attr coverage [Float]
    # @attr url [String] URL for coverage index.html
    Result = Struct.new(:coverage, :url) do
      # @return [String]
      def pretty_coverage
        "#{coverage.round(2)}%"
      end
    end
  end
end