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

Method add_known_file

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

Source from the content-addressed store, hash-verified

1133 self._warnings = []
1134
1135 def add_known_file(self, path, lines=None):
1136 self._files[path] = list(lines or ())
1137 self.add_known_dir(path.rpartition("/")[0])
1138
1139 def add_known_xfile(self, path):
1140 self.add_known_file(path)

Calls 3

add_known_dirMethod · 0.95
listClass · 0.85
rpartitionMethod · 0.45

Tested by

no test coverage detected