A folder `name` with `code/mod_ .py`, tests that import it, and the config files given.
(name: string, config: Record<string, string>, root = 'code')
| 40 | |
| 41 | /** A folder `name` with `code/mod_<name>.py`, tests that import it, and the config files given. */ |
| 42 | function 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. */ |
| 52 | const DECLARED: Record<string, string> = { |
no test coverage detected