fix(tests): R5.7 gate findings, digest typo, census needs #[test] fns

RUST.md and FILES.tsv carry ba79698c...fde7; ledger cargo targets must name a #[test]
function. Verifier and security reports recorded, journal entry.
This commit is contained in:
bchanot committed 2026-10-25 04:18:52 +01:00
1 parent 4e0a6c04d6
commit 475a41d705
5 files changed
+32 -3

No files matched your search

+5 -1
View File
@@ -295,8 +295,12 @@ describe('the disposition of the deleted files and tests', () => {
if (cargo) {
const [, binary, test] = cargo
const files = cargoTargetFile(binary!)
// A `#[test]` function of that name, not any `fn` (attributes and doc lines between).
const testFn = new RegExp(
`#\\[test\\]\\s*(?:(?:#\\[[^\\]]*\\]|///[^\\n]*)\\s*)*fn ${test}\\(`,
)
const defined = files.some(
(path) => exists(path) && read(path).includes(`fn ${test}(`),
(path) => exists(path) && testFn.test(read(path)),
)
expect(defined, `${id}: ${part}`).toBe(true)
continue