(name: string, file: string)
| 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. |
no test coverage detected