MCPcopy
hub / github.com/affaan-m/ECC / test

Function test

tests/scripts/harness-audit.test.js:60–70  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

58}
59
60function test(name, fn) {
61 try {
62 fn();
63 console.log(` \u2713 ${name}`);
64 return true;
65 } catch (error) {
66 console.log(` \u2717 ${name}`);
67 console.log(` Error: ${error.message}`);
68 return false;
69 }
70}
71
72function runTests() {
73 console.log('\n=== Testing harness-audit.js ===\n');

Callers 1

runTestsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected