refactor(tools): remove artificial analysis ceilings

This commit is contained in:
morluto
2026-09-29 16:29:23 +08:00
parent 36aeec9586
commit 2f08c7c932
202 changed files with 2314 additions and 3072 deletions
+11
View File
@@ -84,6 +84,17 @@ describe("custom protocol capture", () => {
expect(result.success).toBe(true);
});
it("accepts every captured frame without an array ceiling", () => {
const frames = Array.from({ length: 100_001 }, (_, sequence) => ({
...sampleFrames[0]!,
sequence,
}));
expect(
customProtocolCaptureSchema.parse({ transport: "tcp", frames }).frames,
).toHaveLength(frames.length);
});
it("correlates process identity", () => {
expect(correlateProcessIdentity(sampleFrames[0]!, 100)).toBe(true);
expect(correlateProcessIdentity(sampleFrames[0]!, 200)).toBe(true);