feat(native): add investigation features (#486)
* feat(native): add UI and dispatch investigation workflows * feat(ghidra): support macOS host validation * docs: update native investigation capabilities * feat(artifacts): decode compiled Interface Builder archives * feat(ghidra): expose bounded p-code value flow * test(ghidra): split host and cross-format verification * fix(verify): follow complete result contracts * refactor: remove unused authorization and schema helpers * refactor: remove unused evidence result alias * fix(ghidra): report jump-table evidence precisely * fix(verify): align browser scenario fixture schema * fix(setup): compare parsed client config structurally * test(ghidra): verify AArch64 jump-table mappings * fix(ghidra): recover AArch64 byte jump tables * test(artifacts): verify compiled interface builder archives * feat(native): trace UI actions through handlers * fix(tests): update native trace and shutdown fixtures * fix(verification): diagnose browser scenario failures * fix(browser): wrap scenario snapshots in capture state * fix(native): bind and bound investigation workflows * fix(artifacts): preserve bounded interface builder evidence * fix(ghidra): enforce admitted hosts and preflight tools * fix(native): preserve trace cancellation and bounds * test(application): expect bound analysis target evidence * fix(native): preserve investigation bounds and cancellation * fix(application): preserve bundle and unresolved trace evidence * style(test): format artifact subject fixture
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
isDbSaveComplete,
|
||||
isGetterSelector,
|
||||
isSetterSelector,
|
||||
inspectNativeDispatchMetadata,
|
||||
objcSwiftMetadataSchema,
|
||||
propertyNameFromSelector,
|
||||
swiftDeclsByKind,
|
||||
@@ -101,4 +102,31 @@ describe("ObjC/Swift metadata", () => {
|
||||
const result = objcSwiftMetadataSchema.safeParse(meta);
|
||||
expect(result.success).toBe(true);
|
||||
});
|
||||
|
||||
it("bounds symbol projections and labels symbol-only metadata as partial", () => {
|
||||
const result = inspectNativeDispatchMetadata(
|
||||
[
|
||||
{ address: "ram:0x1000", name: "OBJC_CLASS_$_StoreController" },
|
||||
{ address: "ram:0x2000", name: "-[StoreController buildTapped:]" },
|
||||
{ address: "ram:0x3000", name: "$s5Store7launchyyF" },
|
||||
],
|
||||
2,
|
||||
);
|
||||
expect(result.objc_classes).toHaveLength(1);
|
||||
expect(result.objc_dispatch_implementations).toHaveLength(1);
|
||||
expect(result.swift_symbols).toHaveLength(0);
|
||||
expect(result.coverage).toContainEqual(
|
||||
expect.objectContaining({
|
||||
facet: "objc_class_symbols",
|
||||
status: "partial",
|
||||
reason: expect.stringContaining("record_limit_reached"),
|
||||
}),
|
||||
);
|
||||
expect(result.coverage).toContainEqual(
|
||||
expect.objectContaining({
|
||||
facet: "swift_dispatch_tables",
|
||||
status: "unsupported",
|
||||
}),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user