MCPcopy Create free account
hub / github.com/cloudflare/computer / summary

Function summary

packages/computer/src/git/diff.test.ts:266–275  ·  view source on GitHub ↗
(opts: { ref?: string; to?: string; paths?: string[] } = {})

Source from the content-addressed store, hash-verified

264 beforeEach(() => vol.reset());
265
266 function summary(opts: { ref?: string; to?: string; paths?: string[] } = {}) {
267 return diffSummaryWith({
268 git: isomorphicGit,
269 fs: memfs,
270 createPatch,
271 readFile: (path) => memfs.promises.readFile(path) as Promise<Uint8Array | string>,
272 dir: DIR,
273 ...opts,
274 });
275 }
276
277 it("returns an empty list for a clean working tree", async () => {
278 await init();

Callers 1

diff.test.tsFile · 0.85

Calls 2

diffSummaryWithFunction · 0.85
readFileMethod · 0.65

Tested by

no test coverage detected