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

Function example

__tests__/spring-model-name-scope.test.ts:17–28  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

15let cg: CodeGraph;
16
17const example = (name: string) => `package com.macro.mall.model;
18
19public class ${name} {
20 public Criteria createCriteria() {
21 Criteria criteria = new Criteria();
22 return criteria;
23 }
24
25 public static class Criteria {
26 }
27}
28`;
29
30beforeAll(async () => {
31 root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-spring-model-'));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected