MCPcopy Create free account
hub / github.com/caike/jQuery-Simple-Timer / collectTests

Function collectTests

tests/qunit-2.9.2.js:3652–3664  ·  view source on GitHub ↗
(module)

Source from the content-addressed store, hash-verified

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;

Callers 2

numberOfTestsFunction · 0.85
numberOfUnskippedTestsFunction · 0.85

Calls 1

toConsumableArrayFunction · 0.85

Tested by

no test coverage detected