MCPcopy Index your code
hub / github.com/clips/pattern / run

Function run

test/test.js:23–41  ·  view source on GitHub ↗
(tests)

Source from the content-addressed store, hash-verified

21}
22
23function run(tests) {
24 /* Executes each method which name starts with "test",
25 * for each TestCase object in the given array.
26 * Throws AssertException if the method fails.
27 */
28 for (var i=0; i < tests.length; i++) {
29 for (var method in tests[i]) {
30 if (method.substring(0,4) == "test") {
31 tests[i].setUp();
32 try {
33 tests[i][method]();
34 } catch(e) {
35 throw e + " in " + method + "()";
36 }
37 tests[i].tearDown();
38 }
39 }
40 }
41}

Callers

nothing calls this directly

Calls 2

setUpMethod · 0.45
tearDownMethod · 0.45

Tested by

no test coverage detected