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

Function assert

scripts/test-permission-audit.js:32–40  ·  view source on GitHub ↗
(condition, label)

Source from the content-addressed store, hash-verified

30let failed = 0;
31
32function assert(condition, label) {
33 if (condition) {
34 passed++;
35 console.log(` PASS ${label}`);
36 } else {
37 failed++;
38 console.error(` FAIL ${label}`);
39 }
40}
41
42function makeTempRoot(name) {
43 const dir = fs.mkdtempSync(path.join(os.tmpdir(), `citadel-perm-audit-${name}-`));

Callers 5

testToolDominanceAnomalyFunction · 0.70
testEmptyStateFunction · 0.70
testHistoricalMergeFunction · 0.70
testHookPipelineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected