MCPcopy Index your code
hub / github.com/scality/cloudserver / buildResponseSpy

Function buildResponseSpy

tests/unit/api/corsErrorHeaders.js:111–118  ·  view source on GitHub ↗
(sandbox)

Source from the content-addressed store, hash-verified

109}
110
111function buildResponseSpy(sandbox) {
112 const headers = {};
113 return {
114 headers,
115 setHeader: sandbox.spy((k, v) => { headers[k.toLowerCase()] = v; }),
116 getHeader: k => headers[k.toLowerCase()],
117 };
118}
119
120function buildLog(sandbox) {
121 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected