MCPcopy Create free account
hub / github.com/python/mypy / test_exported_name

Method test_exported_name

mypyc/test/test_namegen.py:18–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 assert candidate_suffixes("foo.bar") == ["", "bar.", "foo.bar."]
17
18 def test_exported_name(self) -> None:
19 assert exported_name("foo") == "foo"
20 assert exported_name("foo.bar") == "foo___bar"
21
22 def test_make_module_translation_map(self) -> None:
23 assert make_module_translation_map(["foo", "bar"]) == {"foo": "foo.", "bar": "bar."}

Callers

nothing calls this directly

Calls 1

exported_nameFunction · 0.90

Tested by

no test coverage detected