Sha256: 17a84154fa8f062ba81b934d966f74286822b4fcc78f0753850b7d23d795b233

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

module Jacoco
  # DOM parser for Jacoco report
  class DOMParser
    def self.read_path(path)
      DOMParser.new.read_path(path)
    end

    def self.read_string(string)
      DOMParser.new.read_string(string)
    end

    def read_path(path)
      file = File.read(path)
      read_string(file)
    end

    def read_string(string)
      Report.parse(string)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
danger-jacoco-0.1.4 lib/jacoco/dom_parser.rb
danger-jacoco-0.1.3 lib/jacoco/dom_parser.rb
danger-jacoco-0.1.2 lib/jacoco/dom_parser.rb
danger-jacoco-0.1.1 lib/jacoco/dom_parser.rb
danger-jacoco-0.1.0 lib/jacoco/dom_parser.rb
danger-jacoco-0.0.3 lib/jacoco/dom_parser.rb
danger-jacoco-0.0.2 lib/jacoco/dom_parser.rb
danger-jacoco-0.0.1 lib/jacoco/dom_parser.rb