(module: TestModule | TestSuite, tree: any = {}, fnFn?: boolean)
| 1689 | } |
| 1690 | |
| 1691 | function testTree(module: TestModule | TestSuite, tree: any = {}, fnFn?: boolean) { |
| 1692 | for (const item of module.children) { |
| 1693 | if (item.type === 'test') { |
| 1694 | tree[item.name] = testItem(item, fnFn) |
| 1695 | } |
| 1696 | else { |
| 1697 | tree[item.name] ??= {} |
| 1698 | testTree(item, tree[item.name], fnFn) |
| 1699 | } |
| 1700 | } |
| 1701 | return tree |
| 1702 | } |
| 1703 | |
| 1704 | function testItem( |
| 1705 | testCase: TestCase, |
no test coverage detected