(condition, label)
| 30 | let failed = 0; |
| 31 | |
| 32 | function 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 | |
| 42 | function makeTempRoot(name) { |
| 43 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), `citadel-perm-audit-${name}-`)); |
no outgoing calls
no test coverage detected