Sha256: db99913dcfc7dbf8fa5bdf50b5d699a5be1fae85f3c40f6755d16bcab6fd3830

Contents?: true

Size: 756 Bytes

Versions: 1

Compression:

Stored size: 756 Bytes

Contents

module Coco

  # My childs will format coverages information.
  # Kind of abstract class, my childs must implements the `format`
  # method.
  class Formatter

    # raw_coverages - The Hash from Coverage.result. Keys are filenames
    #                 and values are an Array representing each lines of
    #                 the file :
    #                 + nil       : Unreacheable (comments, etc).
    #                 + 0         : Not hit.
    #                 + 1 or more : Number of hits.
    # uncovered     - An Array list of uncovered files.
    #
    # TODO I think covered is a better name than raw_coverages
    def initialize(raw_coverages, uncovered)
      @raw_coverages = raw_coverages
      @uncovered = uncovered
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
coco-0.13.0 lib/coco/formatter/formatter.rb