MCPcopy Index your code
hub / github.com/python/mypy / maybe_write_junit_xml

Function maybe_write_junit_xml

mypy/main.py:1691–1713  ·  view source on GitHub ↗
(
    td: float,
    serious: bool,
    all_messages: list[str],
    messages_by_file: dict[str | None, list[str]],
    options: Options,
)

Source from the content-addressed store, hash-verified

1689
1690
1691def maybe_write_junit_xml(
1692 td: float,
1693 serious: bool,
1694 all_messages: list[str],
1695 messages_by_file: dict[str | None, list[str]],
1696 options: Options,
1697) -> None:
1698 if options.junit_xml:
1699 py_version = f"{options.python_version[0]}_{options.python_version[1]}"
1700 if options.junit_format == "global":
1701 util.write_junit_xml(
1702 td,
1703 serious,
1704 {None: all_messages} if all_messages else {},
1705 options.junit_xml,
1706 py_version,
1707 options.platform,
1708 )
1709 else:
1710 # per_file
1711 util.write_junit_xml(
1712 td, serious, messages_by_file, options.junit_xml, py_version, options.platform
1713 )
1714
1715
1716def fail(msg: str, stderr: TextIO, options: Options) -> NoReturn:

Callers 2

run_buildFunction · 0.85
failFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…