MCPcopy Index your code
hub / github.com/numpy/numpy / get_file

Method get_file

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

Source from the content-addressed store, hash-verified

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

Callers 1

collect_statsFunction · 0.80

Calls 1

SourceFileClass · 0.85

Tested by

no test coverage detected