feat(native): add inspection primitives, dispatch traces and approved UI observation (#500)
* fix(hopper): normalize string-backed addresses and update verification * feat(native): add inspection primitives, dispatch traces and approved UI observation * test: prioritize real artifact E2E and captured golden regressions * fix(process): queue observed output before reactive rendering actions * test: prune redundant cases and strengthen boundary assertions * fix(cli): route native value tracing through shared workflows * test: replace synthetic success with real workflows and captured data * fix(catalog): separate portable metadata from native host availability
This commit is contained in:
@@ -4,11 +4,9 @@ import { ok } from "../domain/result.js";
|
||||
import { traceLiteralFeature } from "./EnhancedLiteralTracing.js";
|
||||
|
||||
describe("literal feature tracing", () => {
|
||||
it("searches procedure and string names before following references", async () => {
|
||||
const calls: string[] = [];
|
||||
it("returns matched procedure and string facts with references", async () => {
|
||||
const result = await traceLiteralFeature(
|
||||
async (name) => {
|
||||
calls.push(name);
|
||||
if (name === "search_strings")
|
||||
return ok([{ address: "0x1000", value: "launch feature" }]);
|
||||
if (name === "search_procedures")
|
||||
@@ -31,21 +29,11 @@ describe("literal feature tracing", () => {
|
||||
references: [],
|
||||
},
|
||||
});
|
||||
expect(calls).toEqual([
|
||||
"search_strings",
|
||||
"search_procedures",
|
||||
"search_strings",
|
||||
"search_procedures",
|
||||
"xrefs",
|
||||
"xrefs",
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps string-code tracing scoped to string labels", async () => {
|
||||
const calls: string[] = [];
|
||||
await traceLiteralFeature(
|
||||
const result = await traceLiteralFeature(
|
||||
async (name) => {
|
||||
calls.push(name);
|
||||
if (name === "search_strings")
|
||||
return ok([{ address: "0x1000", value: "launch feature" }]);
|
||||
if (name === "xrefs") return ok([]);
|
||||
@@ -54,7 +42,14 @@ describe("literal feature tracing", () => {
|
||||
{ query: "launch", case_sensitive: false },
|
||||
"string",
|
||||
);
|
||||
|
||||
expect(calls).toEqual(["search_strings", "xrefs"]);
|
||||
expect(result).toMatchObject({
|
||||
ok: true,
|
||||
value: {
|
||||
matches: [
|
||||
{ type: "string", address: "0x1000", value: "launch feature" },
|
||||
],
|
||||
references: [],
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user