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

Function implementers

__tests__/go-implements-stdlib.test.ts:387–388  ·  view source on GitHub ↗
(name: string, file: string)

Source from the content-addressed store, hash-verified

385
386 it('asks for every method of testing.TB and io.Writer, testing\'s own private and io\'s counts included', () => {
387 const implementers = (name: string, file: string) =>
388 (buildTypeHierarchy(cg, one(name, file))?.descendants ?? []).map((d) => `${d.relation} ${pkg(d.node)}`).sort();
389 // Not the discoverer with a Run, nor fakeTB, whose private is its own package's.
390 expect(implementers('TBRun', 'promql/promql.go')).toEqual(['implements promql.tRunner', 'implements promql.testRunner']);
391 // Not walLog, whose Write takes a record and returns only an error.

Callers 1

Calls 4

buildTypeHierarchyFunction · 0.90
mapMethod · 0.80
oneFunction · 0.70
pkgFunction · 0.70

Tested by

no test coverage detected