Round 2 for #1626 per sage-0314: F1a setter refuses a non-plain prototype, F1b organization writer validates and logs JSON.parse(bytes), F2 loader refuses unreadable paths, README top-level-code limit, control run. Gate 591/0, 0 skipped; controls pass; mutants 47/47 killed (slot sage-0316). Candidate manifest sha256 466c835f7dce79d20c7ab74c197a52b70e7fdeb0efae0456222dc6d0a633f219, 14 paths on base 0bdd573ff; no commit in base..1376caab9 touches them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
86 lines
4.7 KiB
Plaintext
86 lines
4.7 KiB
Plaintext
✔ REQ-PLUG-1 REQ-LIMIT-4 the registry: usage-source and limit-check at interface version 1, each a list (0.996001ms)
|
||
✔ REQ-PLUG-1 checkPlugins accepts one key per kind, each a list of names, empty included (0.182864ms)
|
||
✖ REQ-PLUG-1 checkPlugins refuses bad shapes, unknown kinds, bad names and duplicates (4.001549ms)
|
||
✖ REQ-PLUG-1 a kind that switches on one module takes one name, not a list (0.199326ms)
|
||
✔ REQ-PLUG-1 checkPlugins reports through the caller's fail callback (0.151957ms)
|
||
✔ REQ-PLUG-1 fixture modules of each kind switch on from a test organization file, no core file changed (7.403267ms)
|
||
✖ REQ-PLUG-1 a name not matching ^[a-z][a-z0-9-]*$ refuses and keeps the old setting (3.164675ms)
|
||
✔ REQ-PLUG-1 a missing module directory or index.mjs refuses and keeps the old setting (2.964415ms)
|
||
✔ REQ-PLUG-1 a symlinked module directory or index.mjs refuses and keeps the old setting (2.879038ms)
|
||
✔ REQ-PLUG-1 a symlinked kind directory refuses and keeps the old setting (2.089231ms)
|
||
✔ REQ-PLUG-1 a symlinked packages/plugins refuses (run with --preserve-symlinks so the path keeps it) (27.743931ms)
|
||
✔ REQ-PLUG-1 index.mjs swapped for a symlink after the lstat checks refuses at the realpath check (2.73052ms)
|
||
✔ REQ-PLUG-1 a path that can't be read refuses as unreadable, is logged and keeps the old setting (2.250644ms)
|
||
✔ REQ-PLUG-1 a path that becomes unreadable after the lstat checks refuses at either realpath (2.482361ms)
|
||
✔ REQ-PLUG-1 a module that fails to load refuses and keeps the old setting (2.991154ms)
|
||
✔ REQ-PLUG-1 a missing export refuses and keeps the old setting (3.185904ms)
|
||
✔ REQ-PLUG-1 a different interface version refuses and keeps the old setting (2.332246ms)
|
||
✔ REQ-PLUG-1 a kind refused on its first load has nothing switched on, and the log names kind and name (1.668266ms)
|
||
✔ REQ-PLUG-1 the setting's shape: unknown kinds refuse alone, a bad whole setting keeps everything (2.689325ms)
|
||
✔ REQ-PLUG-1 loads run one at a time, so the last requested setting wins (102.247682ms)
|
||
✔ REQ-PLUG-1 the loader needs a log callback (0.939442ms)
|
||
ℹ tests 21
|
||
ℹ suites 0
|
||
ℹ pass 18
|
||
ℹ fail 3
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 220.340526
|
||
|
||
✖ failing tests:
|
||
|
||
test at packages/plugins/tests/kinds.test.mjs:24:1
|
||
✖ REQ-PLUG-1 checkPlugins refuses bad shapes, unknown kinds, bad names and duplicates (4.001549ms)
|
||
AssertionError [ERR_ASSERTION]: Missing expected exception: Meter
|
||
at TestContext.<anonymous> (file:///home/jwoltje/dewey-scratch/r131/wt/packages/plugins/tests/kinds.test.mjs:30:12)
|
||
at Test.runInAsyncScope (node:async_hooks:226:14)
|
||
at Test.run (node:internal/test_runner/test:1402:25)
|
||
at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
|
||
at Test.postRun (node:internal/test_runner/test:1542:19)
|
||
at Test.run (node:internal/test_runner/test:1467:12)
|
||
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
|
||
generatedMessage: false,
|
||
code: 'ERR_ASSERTION',
|
||
actual: undefined,
|
||
operator: 'throws',
|
||
diff: 'simple'
|
||
}
|
||
|
||
test at packages/plugins/tests/kinds.test.mjs:35:1
|
||
✖ REQ-PLUG-1 a kind that switches on one module takes one name, not a list (0.199326ms)
|
||
AssertionError [ERR_ASSERTION]: Missing expected exception.
|
||
at TestContext.<anonymous> (file:///home/jwoltje/dewey-scratch/r131/wt/packages/plugins/tests/kinds.test.mjs:39:10)
|
||
at Test.runInAsyncScope (node:async_hooks:226:14)
|
||
at Test.run (node:internal/test_runner/test:1402:25)
|
||
at Test.processPendingSubtests (node:internal/test_runner/test:974:18)
|
||
at Test.postRun (node:internal/test_runner/test:1542:19)
|
||
at Test.run (node:internal/test_runner/test:1467:12)
|
||
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
|
||
generatedMessage: false,
|
||
code: 'ERR_ASSERTION',
|
||
actual: undefined,
|
||
operator: 'throws',
|
||
diff: 'simple'
|
||
}
|
||
|
||
test at packages/plugins/tests/loader.test.mjs:64:1
|
||
✖ REQ-PLUG-1 a name not matching ^[a-z][a-z0-9-]*$ refuses and keeps the old setting (3.164675ms)
|
||
AssertionError [ERR_ASSERTION]: Meter: /home/jwoltje/dewey-scratch/tmp/mosaic-plugins-O1VMSX/packages/plugins/usage-source/Meter is missing
|
||
+ actual - expected
|
||
|
||
+ 'missing'
|
||
- 'bad-name'
|
||
|
||
at refusesKeepingOld (file:///home/jwoltje/dewey-scratch/r131/wt/packages/plugins/tests/loader.test.mjs:35:10)
|
||
at async TestContext.<anonymous> (file:///home/jwoltje/dewey-scratch/r131/wt/packages/plugins/tests/loader.test.mjs:67:5)
|
||
at async Test.run (node:internal/test_runner/test:1409:7)
|
||
at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
|
||
generatedMessage: false,
|
||
code: 'ERR_ASSERTION',
|
||
actual: 'missing',
|
||
expected: 'bad-name',
|
||
operator: 'strictEqual',
|
||
diff: 'simple'
|
||
}
|