MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / addStatus

Function addStatus

src/shared/test/test_model.ts:37–42  ·  view source on GitHub ↗
(node: TreeNode)

Source from the content-addressed store, hash-verified

35 getHighestChildStatus(includeSkipped: boolean): TestStatus {
36 const statuses = new Set<TestStatus>();
37 const addStatus = (node: TreeNode) => {
38 if (node !== this && node instanceof TestNode)
39 statuses.add(node.status);
40 for (const child of node.children)
41 addStatus(child);
42 };
43 addStatus(this);
44
45 // Always include Skipped status for Suite nodes that have only that status, else they'll

Callers 1

getHighestChildStatusFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected