Sha256: ad4a894ade1017a4ff04244a663f61610b56068423030652105df07b148d3acd

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

module Coco

  # Assembles data required to represent a line on the index HTML
  # report.
  #
  module IndexLine

    # filename - The absolute String filename.
    # coverage - An Array of hit.
    #
    # Returns an Array.
    #
    def self.build(filename, coverage)
      [
        CoverageStat.coverage_percent(coverage),
        Helpers.name_for_html(filename),
        Helpers.rb2html(filename),
      ]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coco-0.15.0 lib/coco/formatter/index_line.rb
coco-0.14.0 lib/coco/formatter/index_line.rb