MCPcopy Create free account
hub / github.com/anthropics/claude-code / depsOf

Function depsOf

mods/diff/tests/git/fetch-diff.test.ts:21–37  ·  view source on GitHub ↗
(
    script: Script,
    overrides: Partial<Git.GitDeps> = {},
  )

Source from the content-addressed store, hash-verified

19 new Map(entries)
20
21 function depsOf(
22 script: Script,
23 overrides: Partial<Git.GitDeps> = {},
24 ): ScriptedDeps {
25 const scripted = Fixtures.scriptedGitOf(script)
26
27 return {
28 argvs: scripted.argvs,
29 run: scripted.run,
30 repository: Fixtures.FETCH_REPOSITORY,
31 mtimeOf: () => Promise.resolve(Fixtures.DURING_SESSION_MS),
32 entryKindsOf: () => Promise.resolve(listingOf(Fixtures.FILES_LISTING)),
33 sessionStartMs: Fixtures.GIT_SESSION_START_MS,
34 onBranchBase: () => undefined,
35 ...overrides,
36 }
37 }
38
39 const unbornScriptOf = (): Script => ({
40 [Fixtures.VS_HEAD]: Fixtures.UNSCRIPTED,

Callers 1

fetch-diff.test.tsFile · 0.70

Calls 1

listingOfFunction · 0.70

Tested by

no test coverage detected