refactor: consolidate boundary semantics and prune redundant tests
Share parser modes and collision-free composite keys, enforce architecture guards, and consolidate redundant unit assertions into filesystem, CLI, MCP, and producer-backed workflows. Preserve concurrent upstream boundary fixes and exclude legacy Objective-C class-name bookkeeping labels. Validation: source/composition suites (3358 passing), focused canonical digest and MCP checks, typecheck/lint, Knip, formatting, architecture guards, and real Foundation archive and Apple legacy simulator CLI/MCP verification. No real Hopper, Ghidra, or IDA verification claim.
This commit is contained in:
@@ -2,7 +2,6 @@ import { describe, expect, it } from "vitest";
|
||||
|
||||
import {
|
||||
analysisProfileSchema,
|
||||
analysisProfilesEqual,
|
||||
createAnalysisProfile,
|
||||
} from "./analysisProfile.js";
|
||||
import type { JsonValue } from "./jsonValue.js";
|
||||
@@ -14,20 +13,6 @@ const PROVIDER = {
|
||||
} as const;
|
||||
|
||||
describe("analysis profile commitments", () => {
|
||||
it("canonicalizes parameter key order and validates its digest", () => {
|
||||
const first = createAnalysisProfile(PROVIDER, {
|
||||
architecture: "arm64",
|
||||
analyzers: { strings: true, functions: true },
|
||||
});
|
||||
const reordered = createAnalysisProfile(PROVIDER, {
|
||||
analyzers: { functions: true, strings: true },
|
||||
architecture: "arm64",
|
||||
});
|
||||
expect(reordered.digest).toBe(first.digest);
|
||||
expect(analysisProfilesEqual(first, reordered)).toBe(true);
|
||||
expect(analysisProfileSchema.parse(first)).toEqual(first);
|
||||
});
|
||||
|
||||
it("separates provider builds and semantic parameters", () => {
|
||||
const baseline = createAnalysisProfile(PROVIDER, { loader: "default" });
|
||||
const changedBuild = createAnalysisProfile(
|
||||
|
||||
Reference in New Issue
Block a user