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

Function callsFrom

__tests__/python-receiver-guess.test.ts:89–96  ·  view source on GitHub ↗

`Owner::member` of every call edge out of a file.

(file: string)

Source from the content-addressed store, hash-verified

87
88/** `Owner::member` of every call edge out of a file. */
89function callsFrom(file: string): string[] {
90 const ids = cg.getNodesInFile(file).map((n) => n.id);
91 return cg
92 .getOutgoingEdgesFrom(ids)
93 .filter((e) => e.kind === 'calls')
94 .map((e) => cg.getNode(e.target)!.qualifiedName)
95 .sort();
96}
97
98describe('receiver-name guesses', () => {
99 it('never land on a dispatched view handler or an unnamed test double; a Django manager call types its result', () => {

Callers 1

Calls 4

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

Tested by

no test coverage detected