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

Function read

__tests__/nextjs-proxy.test.ts:126–129  ·  view source on GitHub ↗
(src: string)

Source from the content-addressed store, hash-verified

124
125describe('reading config.matcher', () => {
126 const read = (src: string): string[] | 'all' => {
127 const out = readProxyMatcher(src);
128 return out === 'all' ? out : out.map((e) => e.source);
129 };
130
131 it('is every path with no config, or a config with no matcher', () => {
132 expect(read('export function proxy() {}\n')).toBe('all');

Callers 1

Calls 2

readProxyMatcherFunction · 0.90
mapMethod · 0.80

Tested by

no test coverage detected