MCPcopy Create free account
hub / github.com/SethGammon/Citadel / test

Function test

scripts/test-security.js:35–46  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

33let failed = 0;
34const failures = [];
35
36function test(name, fn) {
37 try {
38 fn();
39 passed++;
40 console.log(` ✓ ${name}`);
41 } catch (err) {
42 failed++;
43 const msg = err.message || String(err);
44 failures.push({ name, msg });
45 console.log(` ✗ ${name}\n ${msg}`);
46 }
47}
48
49function assert(condition, message) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected