MCPcopy Create free account
hub / github.com/angular/dev-infra / buildContentRange

Function buildContentRange

github-actions/saucelabs/set-saucelabs-env.js:4902–4910  ·  view source on GitHub ↗
(rangeStart, rangeEnd, fullLength)

Source from the content-addressed store, hash-verified

4900 }
4901 if (rangeEndValue === null && rangeStartValue === null) {
4902 return "failure";
4903 }
4904 if (rangeStartValue > rangeEndValue) {
4905 return "failure";
4906 }
4907 return { rangeStartValue, rangeEndValue };
4908 }
4909 function buildContentRange(rangeStart, rangeEnd, fullLength) {
4910 let contentRange = "bytes ";
4911 contentRange += isomorphicEncode(`${rangeStart}`);
4912 contentRange += "-";
4913 contentRange += isomorphicEncode(`${rangeEnd}`);

Callers 1

schemeFetchFunction · 0.70

Calls 1

isomorphicEncodeFunction · 0.70

Tested by

no test coverage detected