(name)
| 6 | function createMockPool(dependencyMapping) { |
| 7 | return { |
| 8 | async getModuleInfo(name) { |
| 9 | const info = new ModuleInfo(name); |
| 10 | let dependencies = dependencyMapping[name]; |
| 11 | if (!dependencies) { |
| 12 | return info; |
| 13 | } |
| 14 | if (!Array.isArray(dependencies)) { |
| 15 | dependencies = [dependencies]; |
| 16 | } |
| 17 | dependencies.forEach((dep) => { |
| 18 | info.addDependency(dep); |
| 19 | }); |
| 20 | return info; |
| 21 | } |
| 22 | }; |
| 23 | } |
| 24 |
nothing calls this directly
no test coverage detected