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

Function reachesTask

__tests__/csharp-namespace-visibility.test.ts:72–75  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

70});
71
72const reachesTask = (file: string) => {
73 const ids = cg.getNodesInFile(file).map((n) => n.id);
74 return cg.getOutgoingEdgesFrom(ids).some((e) => cg.getNode(e.target)!.qualifiedName === 'App.Tests.Schema::Task');
75};
76
77describe('C# type names and namespaces', () => {
78 it('a type another namespace does not import is not in reach', () => {

Calls 4

mapMethod · 0.80
getNodeMethod · 0.80
getNodesInFileMethod · 0.65
getOutgoingEdgesFromMethod · 0.45

Tested by

no test coverage detected