MCPcopy
hub / github.com/unconed/MathBox.js / run

Function run

test/Test.js:37–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 function run() {
38 var t = 1;
39 for (i in Test.Tests) (function (test, context) {
40 ++t;
41 try {
42 test(
43 function (b, m) {
44 return assert(b, m, context);
45 },
46 function () {
47 if (--t == 0) {
48 done();
49 }
50 });
51 }
52 catch (e) {
53 assert(false, 'Exception: ' + e, context);
54 if (--t == 0) {
55 done();
56 }
57 throw e;
58 }
59 })(Test.Tests[i], i);
60
61 if (--t == 0) {
62 done();
63 }
64 }
65
66 run();
67};

Callers 1

Test.jsFile · 0.85

Calls 3

testFunction · 0.85
assertFunction · 0.85
doneFunction · 0.85

Tested by

no test coverage detected