debian-mirror-gitlab/lib/gitlab/ci/parsers/coverage/cobertura.rb
2022-05-07 20:08:51 +05:30

18 lines
544 B
Ruby

# frozen_string_literal: true
module Gitlab
module Ci
module Parsers
module Coverage
class Cobertura
InvalidXMLError = Class.new(Gitlab::Ci::Parsers::ParserError)
InvalidLineInformationError = Class.new(Gitlab::Ci::Parsers::ParserError)
def parse!(xml_data, coverage_report, project_path: nil, worktree_paths: nil)
Nokogiri::XML::SAX::Parser.new(SaxDocument.new(coverage_report, project_path, worktree_paths)).parse(xml_data)
end
end
end
end
end
end