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

Function test

scripts/test-secrets-lens.js:45–56  ·  view source on GitHub ↗
(name, fn)

Source from the content-addressed store, hash-verified

43const failures = [];
44
45function test(name, fn) {
46 try {
47 fn();
48 passed++;
49 console.log(` ✓ ${name}`);
50 } catch (err) {
51 failed++;
52 const msg = err.message || String(err);
53 failures.push({ name, msg });
54 console.log(` ✗ ${name}\n ${msg}`);
55 }
56}
57
58function assert(condition, message) {
59 if (!condition) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected