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

Function handleReply

github-actions/saucelabs/set-saucelabs-env.js:11097–11113  ·  view source on GitHub ↗
(mockDispatches, _data = data)

Source from the content-addressed store, hash-verified

11095 return STATUS_CODES[statusCode] || "unknown";
11096 }
11097 function getResponse(body) {
11098 return __async(this, null, function* () {
11099 const buffers = [];
11100 try {
11101 for (var iter = __forAwait(body), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
11102 const data = temp.value;
11103 buffers.push(data);
11104 }
11105 } catch (temp) {
11106 error = [temp];
11107 } finally {
11108 try {
11109 more && (temp = iter.return) && (yield temp.call(iter));
11110 } finally {
11111 if (error)
11112 throw error[0];
11113 }
11114 }
11115 return Buffer.concat(buffers).toString("utf8");
11116 });

Callers 1

mockDispatchFunction · 0.70

Calls 8

buildHeadersFromArrayFunction · 0.70
__spreadPropsFunction · 0.70
__spreadValuesFunction · 0.70
getResponseDataFunction · 0.70
generateKeyValuesFunction · 0.70
getStatusTextFunction · 0.70
deleteMockDispatchFunction · 0.70
onErrorMethod · 0.45

Tested by

no test coverage detected