(ns: string, name: string, methods: string[])
| 16 | let cg: CodeGraph; |
| 17 | |
| 18 | const controller = (ns: string, name: string, methods: string[]) => `<?php |
| 19 | |
| 20 | namespace App\\Http\\Controllers\\${ns}; |
| 21 | |
| 22 | class ${name} |
| 23 | { |
| 24 | ${methods.map((m) => ` public function ${m}() { return 1; }`).join('\n')} |
| 25 | } |
| 26 | `; |
| 27 | |
| 28 | beforeAll(async () => { |
| 29 | root = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-laravel-strings-')); |
no test coverage detected