MCPcopy Index your code
hub / github.com/nodejs/node / HasRunTest

Method HasRunTest

tools/v8-json-to-junit.py:50–59  ·  view source on GitHub ↗
(self, test_name, test_cmd, test_duration, test_failure)

Source from the content-addressed store, hash-verified

48 self.root.attrib["name"] = test_suite_name
49
50 def HasRunTest(self, test_name, test_cmd, test_duration, test_failure):
51 test_case_element = ET.Element("testcase")
52 test_case_element.attrib["name"] = test_name
53 test_case_element.attrib["cmd"] = test_cmd
54 test_case_element.attrib["time"] = str(round(test_duration, 3))
55 if test_failure is not None:
56 failure_element = ET.Element("failure")
57 failure_element.text = test_failure
58 test_case_element.append(failure_element)
59 self.root.append(test_case_element)
60
61 def FinishAndWrite(self, f):
62 ET.ElementTree(self.root).write(f, "UTF-8")

Callers 1

MainFunction · 0.95

Calls 2

strFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected