MCPcopy Create free account
hub / github.com/numpy/numpy / get_file

Method get_file

tools/c_coverage/c_coverage_report.py:83–90  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

81 self.prefix = None
82
83 def get_file(self, path):
84 if path not in self.files:
85 self.files[path] = SourceFile(path)
86 if self.prefix is None:
87 self.prefix = path
88 else:
89 self.prefix = os.path.commonprefix([self.prefix, path])
90 return self.files[path]
91
92 def clean_path(self, path):
93 path = path[len(self.prefix):]

Callers 1

collect_statsFunction · 0.80

Calls 1

SourceFileClass · 0.85

Tested by

no test coverage detected