test(package): share validated native dossier fixtures

This commit is contained in:
morluto
2026-10-10 04:02:40 +08:00
parent 5d32e42529
commit ca9010936a
6 changed files with 46 additions and 65 deletions
+35
View File
@@ -0,0 +1,35 @@
import { functionDossierSchema } from "../../dist/domain/hopperValues.js";
/** Validated synthetic native observations shared by managed verification lanes. */
export const functionDossier = (name) =>
functionDossierSchema.parse({
procedure: {
address: "0x401000",
name,
classification: {
external: false,
thunk: false,
thunk_target: null,
provenance: "synthetic-provider",
},
body: {
available: false,
reason: "Synthetic provider does not supply function body ranges.",
},
signature: null,
locals: [],
},
pseudocode: "",
assembly: [],
comments: [],
callers: [],
callees: [],
incoming_references: [],
outgoing_references: [],
referenced_strings: [],
referenced_names: [],
basic_blocks: [],
native_api: null,
native_value_flow: null,
limitations: [],
});