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

Function plugins

__tests__/drupal-services.test.ts:104–105  ·  view source on GitHub ↗
(file: string, source: string)

Source from the content-addressed store, hash-verified

102
103describe('a plugin definition', () => {
104 const plugins = (file: string, source: string): [string, string][] =>
105 extract(file, source).nodes.map((n) => [n.name, n.qualifiedName.replace(`${file}::`, '')]);
106
107 it('is read from an attribute, multi-line or not, with the id named or first', () => {
108 expect(plugins('src/Plugin/Block/A.php', `<?php

Callers 1

Calls 2

mapMethod · 0.80
extractFunction · 0.70

Tested by

no test coverage detected