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:
1 parent
4e0a6c04d6
commit
475a41d705
5 files changed
+32
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user