From 0321bb91a71b2b8c90a8249dde8acda8985492fb Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Sat, 24 Oct 2026 03:14:30 +0800 Subject: [PATCH] fix(apple): align asset allowance and category fixture types --- src/artifacts/apple/AppleAssetCatalogAnalysis.ts | 2 +- src/domain/symbolAnalysis.test.ts | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/artifacts/apple/AppleAssetCatalogAnalysis.ts b/src/artifacts/apple/AppleAssetCatalogAnalysis.ts index 21ae9e87e4..3a8a053f9d 100644 --- a/src/artifacts/apple/AppleAssetCatalogAnalysis.ts +++ b/src/artifacts/apple/AppleAssetCatalogAnalysis.ts @@ -406,7 +406,7 @@ const assetUtilFailure = (cause: unknown, signal?: AbortSignal): unknown => { ...options, ...fixedAllowanceOptions( "the fixed 64 MiB assetutil capture allowance", - "output", + "capture", ), }, ); diff --git a/src/domain/symbolAnalysis.test.ts b/src/domain/symbolAnalysis.test.ts index fa66e668ad..b547fd5533 100644 --- a/src/domain/symbolAnalysis.test.ts +++ b/src/domain/symbolAnalysis.test.ts @@ -33,8 +33,10 @@ describe("modern Swift category evidence", () => { const result = categorizeSwiftTypes( names.map((name, index) => ({ address: String(index), name })), ); - expect(result.categories.structs.count).toBe(0); - expect(result.categories.other.count).toBe(2); + expect(result.categories).toMatchObject({ + structs: { count: 0 }, + other: { count: 2 }, + }); expect(result.unclassified.map(({ name }) => name)).toEqual(names); const controls = [ ["_$s1M7WrapperV1vxvg", "structs"], @@ -44,9 +46,8 @@ describe("modern Swift category evidence", () => { ] as const; for (const [name, category] of controls) expect( - categorizeSwiftTypes([{ address: "0x1", name }]).categories[category] - .count, - ).toBe(1); + categorizeSwiftTypes([{ address: "0x1", name }]).categories, + ).toMatchObject({ [category]: { count: 1 } }); }); it("retains unresolved Swift observations under category filters", () => {