MCPcopy Index your code
hub / github.com/nodejs/node / get_source_checksum

Method get_source_checksum

tools/inspector_protocol/jinja2/bccache.py:176–178  ·  view source on GitHub ↗

Returns a checksum for the source.

(self, source)

Source from the content-addressed store, hash-verified

174 return hash.hexdigest()
175
176 def get_source_checksum(self, source):
177 """Returns a checksum for the source."""
178 return sha1(source.encode('utf-8')).hexdigest()
179
180 def get_bucket(self, environment, name, filename, source):
181 """Return a cache bucket for the given template. All arguments are

Callers 1

get_bucketMethod · 0.95

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected