feat(errors)!: add the TargetFailure model, its projection table and conformance registry (#14247)

This commit is contained in:
morluto authored and GitHub committed 2026-11-24 19:39:15 -05:00
1 parent fab4e1ae00
commit 40e9a3f1a1
113 files changed
+1639 -583

No files matched your search

@@ -669,7 +669,7 @@ it("retains the exact source when recognized magic has no complete version", asy
if (result.ok) throw new Error("Expected truncated metadata prefix");
expect(result.error).toMatchObject({
_tag: "AnalysisMalformedTargetError",
_tag: "AnalysisTargetFailureError",
path,
failure: {
kind: "truncated",
@@ -880,7 +880,7 @@ it.each([false, true])(
expect(ordinary).toMatchObject({
ok: false,
error: {
_tag: "AnalysisMalformedTargetError",
_tag: "AnalysisTargetFailureError",
path: binary_path,
failure: {
kind: "malformed",
@@ -929,7 +929,7 @@ it("refuses duplicate MethodDef tokens before publishing linked Evidence or Ghid
details: {
path,
format: "il2cpp-metadata",
format_failure: "malformed",
failure_kind: "malformed",
reason: expect.stringMatching(/^invalid-method-definition-token:/u),
},
});
@@ -1179,7 +1179,7 @@ it("names the metadata, not the binary, when linking reads a malformed metadata
const result = await provider.inspect({ path, binary_path: binaryPath });
if (result.ok) throw new Error("Expected the metadata name to be refused");
expect(result.error).toMatchObject({
_tag: "AnalysisMalformedTargetError",
_tag: "AnalysisTargetFailureError",
path,
failure: {
kind: "malformed",