mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 22:36:08 +00:00
refactor: use canonical implementations and types directly
Remove forwarding wrappers and shadow aliases, migrate callers and verification scripts to their owners, and share one exhaustive semantic resource-bound projection.
This commit is contained in:
1 parent
3283a45d09
commit
765e809e36
119 files changed
+577
-629
No files matched your search
@@ -144,6 +144,26 @@ it("reports semantic value resource limits in application graph coverage", async
|
||||
}),
|
||||
]),
|
||||
});
|
||||
const sourceModuleLimits = graph.nodes
|
||||
.filter(({ kind }) => kind === "javascript-module")
|
||||
.flatMap(({ observations }) => observations)
|
||||
.filter(
|
||||
({ evidence }) =>
|
||||
evidence.extractor.operation === "recover-source-module",
|
||||
)
|
||||
.flatMap(({ evidence }) => evidence.coverage.limits);
|
||||
expect(sourceModuleLimits).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({
|
||||
name: "javascript_semantic_primitive_candidates",
|
||||
unit: "items",
|
||||
}),
|
||||
expect.objectContaining({
|
||||
name: "javascript_semantic_primitive_bytes",
|
||||
unit: "bytes",
|
||||
}),
|
||||
]),
|
||||
);
|
||||
expect(graph.limitations).toContain(
|
||||
"Primitive candidate budget exceeded (maximum 256 alternatives).",
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user