MCPcopy Create free account
hub / github.com/SAP/ui5-builder / getModuleInfo

Function getModuleInfo

test/lib/lbt/graph/dominatorTree.js:8–21  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

6function 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

Callers

nothing calls this directly

Calls 1

addDependencyMethod · 0.95

Tested by

no test coverage detected