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

Function getModuleInfo

test/lib/lbt/graph/topologicalSort.js:7–20  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

addDependencyMethod · 0.95

Tested by

no test coverage detected