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

Function covers

__tests__/nextjs-proxy.test.ts:20–23  ·  view source on GitHub ↗
(source: string, route: string, file = 'app/x/page.tsx')

Source from the content-addressed store, hash-verified

18import type { Edge, Node } from '../src/types';
19
20const covers = (source: string, route: string, file = 'app/x/page.tsx'): boolean | null => {
21 const regex = compileMatcher(source);
22 return regex === null ? null : matcherCovers(regex, route, file);
23};
24
25describe('a matcher entry', () => {
26 it.each([

Callers 1

Calls 2

compileMatcherFunction · 0.90
matcherCoversFunction · 0.90

Tested by

no test coverage detected