MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / is_public

Function is_public

data_structures/hashing/tests/test_hash_map.py:91–92  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

89
90def test_no_new_methods_was_added_to_api():
91 def is_public(name: str) -> bool:
92 return not name.startswith("_")
93
94 dict_public_names = {name for name in dir({}) if is_public(name)}
95 hash_public_names = {name for name in dir(HashMap()) if is_public(name)}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected