Class: Gitlab::Ci::Parsers::Coverage::Cobertura

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/parsers/coverage/cobertura.rb

Constant Summary collapse

InvalidXMLError =
Class.new(Gitlab::Ci::Parsers::ParserError)
InvalidLineInformationError =
Class.new(Gitlab::Ci::Parsers::ParserError)

Instance Method Summary collapse

Instance Method Details

#parse!(xml_data, coverage_report, project_path: nil, worktree_paths: nil) ⇒ Object



11
12
13
# File 'lib/gitlab/ci/parsers/coverage/cobertura.rb', line 11

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