MCPcopy Index your code
hub / github.com/python/cpython / add_known_file

Method add_known_file

Lib/test/test_getpath.py:959–961  ·  view source on GitHub ↗
(self, path, lines=None)

Source from the content-addressed store, hash-verified

957 self._warnings = []
958
959 def add_known_file(self, path, lines=None):
960 self._files[path.casefold()] = list(lines or ())
961 self.add_known_dir(path.rpartition("\\")[0])
962
963 def add_known_xfile(self, path):
964 self.add_known_file(path)

Callers 9

test_normal_win32Method · 0.95
test_buildtree_win32Method · 0.95
test_venv_win32Method · 0.95
test_registry_win32Method · 0.95
test_no_dlls_win32Method · 0.95
add_known_xfileMethod · 0.95

Calls 4

add_known_dirMethod · 0.95
listClass · 0.85
casefoldMethod · 0.80
rpartitionMethod · 0.45

Tested by

no test coverage detected