MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / optsIn

Function optsIn

__tests__/git-ignored-dirs-scope.test.ts:223–223  ·  view source on GitHub ↗
(repo: string, dir: string)

Source from the content-addressed store, hash-verified

221
222 it('includeIgnoredPatternFor anchors the path and escapes glob characters', () => {
223 const optsIn = (repo: string, dir: string) => ignore().add(includeIgnoredPatternFor(repo)).ignores(dir);
224 expect(includeIgnoredPatternFor('repos/a/')).toBe('/repos/a/');
225 expect(optsIn('mtc-a/', 'mtc-a/')).toBe(true);
226 expect(optsIn('mtc-a/', 'archive/mtc-a/')).toBe(false);

Callers 1

Calls 3

includeIgnoredPatternForFunction · 0.90
ignoresMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected