refactor(inputs): own absolute path validation in shared contracts

This commit is contained in:
morluto committed 2026-10-22 08:13:46 +08:00
1 parent c5c5ff45aa
commit cdd718ffb0
63 files changed
+327 -408

No files matched your search

@@ -25,10 +25,18 @@ it.each([
throw new Error("must not run");
},
});
expect(await service.inspect(input)).toMatchObject({
const result = await service.inspect(input);
expect(result).toMatchObject({
ok: false,
error: { _tag: "AnalysisInputError" },
});
if (input.path === "relative.elf")
expect(result).toMatchObject({
ok: false,
error: {
issues: [{ path: ["path"], reason: "invalid_format" }],
},
});
},
);