MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / get

Function get

pkg/npm/test/archive-limits.test.js:161–174  ·  view source on GitHub ↗
(url, ...rest)

Source from the content-addressed store, hash-verified

159function fakeTransportServing(configure, requests = []) {
160 return {
161 get(url, ...rest) {
162 const callback = rest[rest.length - 1];
163 requests.push({ url, options: rest.length > 1 ? rest[0] : undefined });
164 const request = new EventEmitter();
165 request.destroy = (err) => { if (err) request.emit('error', err); };
166 setImmediate(() => {
167 const response = new Readable({ read() {} });
168 response.statusCode = 200;
169 response.headers = {};
170 configure(response);
171 callback(response);
172 });
173 return request;
174 },
175 };
176}
177

Callers 1

downloadHopFunction · 0.50

Calls 3

configureFunction · 0.85
emitMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected