MCPcopy Create free account
hub / github.com/aws/constructs / validateTree

Function validateTree

test/construct.test.ts:386–394  ·  view source on GitHub ↗
(root: Construct)

Source from the content-addressed store, hash-verified

384 const stack = new TestStack();
385
386 const validateTree = (root: Construct) => {
387 const errors: ValidationError[] = [];
388 for (const child of root.node.children) {
389 errors.push(...validateTree(child));
390 }
391
392 errors.push(...root.node.validate().map(message => ({ source: root, message })));
393 return errors;
394 };
395
396 const errors = validateTree(stack)
397 .map((v: ValidationError) => ({ path: v.source.node.path, message: v.message }));

Callers 1

construct.test.tsFile · 0.85

Calls 1

validateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…