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