(module)
| 3650 | } |
| 3651 | |
| 3652 | function collectTests(module) { |
| 3653 | var tests = [].concat(module.tests); |
| 3654 | var modules = [].concat(toConsumableArray(module.childModules)); |
| 3655 | |
| 3656 | // Do a breadth-first traversal of the child modules |
| 3657 | while (modules.length) { |
| 3658 | var nextModule = modules.shift(); |
| 3659 | tests.push.apply(tests, nextModule.tests); |
| 3660 | modules.push.apply(modules, toConsumableArray(nextModule.childModules)); |
| 3661 | } |
| 3662 | |
| 3663 | return tests; |
| 3664 | } |
| 3665 | |
| 3666 | function numberOfTests(module) { |
| 3667 | return collectTests(module).length; |
no test coverage detected