MCPcopy Index your code
hub / github.com/RustPython/RustPython / add_junit

Method add_junit

Lib/test/libregrtest/results.py:171–178  ·  view source on GitHub ↗
(self, xml_data: list[str])

Source from the content-addressed store, hash-verified

169 return (tuple(tests), match_tests_dict)
170
171 def add_junit(self, xml_data: list[str]) -> None:
172 import xml.etree.ElementTree as ET
173 for e in xml_data:
174 try:
175 self.testsuite_xml.append(ET.fromstring(e))
176 except ET.ParseError:
177 print(xml_data, file=sys.__stderr__)
178 raise
179
180 def write_junit(self, filename: StrPath) -> None:
181 if not self.testsuite_xml:

Callers 1

accumulate_resultMethod · 0.95

Calls 3

printFunction · 0.50
appendMethod · 0.45
fromstringMethod · 0.45

Tested by

no test coverage detected