Sha256: ddec6d8a0997f1a92a45d40f861f2b1da5a9fb4aac47b0067842ee78f5047efa

Contents?: true

Size: 411 Bytes

Versions: 15

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

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

15 entries across 15 versions & 2 rubygems

Version Path
danger-jacoco-0.1.9 lib/jacoco/dom_parser.rb
danger-jacoco-instacart-0.1.15 lib/jacoco/dom_parser.rb
danger-jacoco-instacart-0.1.14 lib/jacoco/dom_parser.rb
danger-jacoco-instacart-0.1.13.SNAPSHOT.1 lib/jacoco/dom_parser.rb
danger-jacoco-instacart-0.1.13 lib/jacoco/dom_parser.rb
danger-jacoco-instacart-0.1.12.SNAPSHOT.2 lib/jacoco/dom_parser.rb
danger-jacoco-instacart-0.1.12.SNAPSHOT.1 lib/jacoco/dom_parser.rb
danger-jacoco-instacart-0.1.12 lib/jacoco/dom_parser.rb
danger-jacoco-instacart-0.1.11 lib/jacoco/dom_parser.rb
danger-jacoco-instacart-0.1.10 lib/jacoco/dom_parser.rb
danger-jacoco-instacart-0.1.9 lib/jacoco/dom_parser.rb
danger-jacoco-0.1.8 lib/jacoco/dom_parser.rb
danger-jacoco-0.1.7 lib/jacoco/dom_parser.rb
danger-jacoco-0.1.6 lib/jacoco/dom_parser.rb
danger-jacoco-0.1.5 lib/jacoco/dom_parser.rb