From 5ddd7dc0d4634c4a8d300b573dd4f7780642f496 Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sat, 24 Oct 2026 05:23:55 +0800 Subject: [PATCH] test(reconstruction): declare authored function symbol identity --- ...uctionVerification.functionSources.test.ts | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/domain/reconstructionVerification.functionSources.test.ts b/src/domain/reconstructionVerification.functionSources.test.ts index c053730812..df111467a8 100644 --- a/src/domain/reconstructionVerification.functionSources.test.ts +++ b/src/domain/reconstructionVerification.functionSources.test.ts @@ -27,6 +27,13 @@ const dossier = jsonValueSchema.parse( procedure: { address: "0x1000", name: "main", + symbol: { + primary: true, + dynamic: false, + external: false, + type: "function", + source: "imported", + }, classification: null, body: { available: false, @@ -230,6 +237,13 @@ describe("historical calls-only reconstruction changes", () => { { address: "0x2000", name: "puts", + symbol: { + primary: true, + dynamic: false, + external: true, + type: "function", + source: "imported", + }, classification: null, body: { available: false, reason: "External function." }, }, @@ -277,6 +291,7 @@ describe("historical calls-only reconstruction changes", () => { ); expect(historicalResult).toMatchObject({ status: "changed", + function_match: { status: "matched", method: "symbol" }, summary: { changed: 1 }, }); expect(historicalResult.changes).toMatchObject([ @@ -467,7 +482,10 @@ describe("function reconstruction call coverage", () => { {}, changedResult, ); - expect(oldChanged.normalized_result).toMatchObject({ status: "changed" }); + expect(oldChanged.normalized_result).toMatchObject({ + status: "changed", + function_match: { status: "matched", method: "symbol" }, + }); expect( admittedVerification(oldChanged, [left, incomplete], "overall")(), ).toMatchObject({