(
script: Script,
overrides: Partial<Git.GitDeps> = {},
)
| 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, |
no test coverage detected