debian-mirror-gitlab/lib/gitlab/ci/parsers/coverage/cobertura.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
544 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
module Gitlab
module Ci
module Parsers
module Coverage
class Cobertura
2021-02-22 17:27:13 +05:30
InvalidXMLError = Class.new(Gitlab::Ci::Parsers::ParserError)
InvalidLineInformationError = Class.new(Gitlab::Ci::Parsers::ParserError)
2020-04-08 14:13:33 +05:30
2021-02-22 17:27:13 +05:30
def parse!(xml_data, coverage_report, project_path: nil, worktree_paths: nil)
2022-05-07 20:08:51 +05:30
Nokogiri::XML::SAX::Parser.new(SaxDocument.new(coverage_report, project_path, worktree_paths)).parse(xml_data)
2020-04-08 14:13:33 +05:30
end
end
end
end
end
end