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

Function service

__tests__/python-declared-import-roots.test.ts:42–49  ·  view source on GitHub ↗

A folder `name` with `code/mod_ .py`, tests that import it, and the config files given.

(name: string, config: Record<string, string>, root = 'code')

Source from the content-addressed store, hash-verified

40
41/** A folder `name` with `code/mod_<name>.py`, tests that import it, and the config files given. */
42function service(name: string, config: Record<string, string>, root = 'code'): Record<string, string> {
43 const out: Record<string, string> = {
44 [`${name}/${root}/mod_${name}.py`]: MODULE,
45 [`${name}/tests/test_${name}.py`]: tests(name, `mod_${name}`),
46 };
47 for (const [file, content] of Object.entries(config)) out[`${name}/${file}`] = content;
48 return out;
49}
50
51/** Every way a root is declared, one folder each; then the cases that must make no edge. */
52const DECLARED: Record<string, string> = {

Calls 1

testsFunction · 0.85

Tested by

no test coverage detected