test(providers): verify framing through client socket boundaries

This commit is contained in:
morluto
2026-10-08 04:03:23 +08:00
parent f517a5a1d7
commit 1fd1989d34
20 changed files with 226 additions and 607 deletions
-17
View File
@@ -299,23 +299,6 @@ describe("Ghidra jump-table mapping contract", () => {
).toMatchObject({ ok: false, error: { _tag: "AnalysisOutputError" } });
}
});
it("keeps jump-table sources separate from case-to-target mappings", () => {
const parsed = parseGhidraFunctionResult(
"analyze_function",
ghidraFunctionDossier(),
);
if (!parsed.ok) throw parsed.error;
const boundary = functionDossierSchema.parse(parsed.value).native_api;
if (boundary?.available !== true)
throw new TypeError("Ghidra native API fixture is unavailable");
const mapping = boundary.jump_tables[0]?.mappings[0];
expect(mapping).toMatchObject({
case_value: 0,
target_address: "0x401020",
});
expect(mapping).not.toHaveProperty("data_addresses");
});
});
describe("Ghidra function-analysis malformed results", () => {