MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_content

Method get_content

src/licensedcode_test_utils.py:129–135  ·  view source on GitHub ↗

Return a byte strings of the test file content.

(self)

Source from the content-addressed store, hash-verified

127 df.write(as_yaml)
128
129 def get_content(self):
130 """
131 Return a byte strings of the test file content.
132 """
133 with open(self.test_file, 'rb') as df:
134 d = df.read()
135 return d
136
137 def get_test_method_name(self, prefix='test_detection_'):
138 test_file_name = self.test_file_name

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected