MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / pin_specs

Function pin_specs

scripts/update_cddl.py:251–258  ·  view source on GitHub ↗

(shortname, cddl_filename, cddl_sha256, dfns_sha256) per spec, hashed at the webref commit.

(webref_commit, specs)

Source from the content-addressed store, hash-verified

249
250
251def pin_specs(webref_commit, specs):
252 """(shortname, cddl_filename, cddl_sha256, dfns_sha256) per spec, hashed at the webref commit."""
253 pinned = []
254 for shortname, cddl_filename in specs:
255 cddl_sha256 = sha256_of(get(WEBREF_RAW.format(commit=webref_commit, path=f"cddl/{cddl_filename}")))
256 dfns_sha256 = sha256_of(get(WEBREF_RAW.format(commit=webref_commit, path=f"dfns/{shortname}.json")))
257 pinned.append((shortname, cddl_filename, cddl_sha256, dfns_sha256))
258 return pinned
259
260
261def vendor_repo_name(namespace, filename):

Callers 1

mainFunction · 0.85

Calls 4

sha256_ofFunction · 0.85
getFunction · 0.70
formatMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected