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

Function isGuardDecorator

src/ui-server/api/steps.ts:352–356  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

350}
351
352function isGuardDecorator(text: string): boolean {
353 const name = decoratorName(text);
354 if (NOT_A_GUARD.test(name)) return false;
355 return GUARD_DECORATOR.test(name);
356}
357
358/** FastAPI: `dependencies=[Depends(auth), Depends(rate_limit)]` inside the route decorator. */
359function dependenciesIn(text: string): string[] {

Callers 2

chainForFunction · 0.85
consumerTriggerFunction · 0.85

Calls 1

decoratorNameFunction · 0.85

Tested by

no test coverage detected