Reverse engineer anything with agents, from app behavior down to native binaries.
TypeScript agent-skillsai-agentsbinary-analysisclaude-codeclicodexcordisdecompilerdeveloper-toolsdshdsh-pluginghidrahopperllmmcpmodel-context-protocolreareverse-engineeringstatic-analysistouhou
test(pcap): run the missing-path refusal only where captures are admitted (#2510)
Kaoru08221991542e59f6
diff --git a/tests/boundary/pcap/pcapProviderCrossPlatform.test.ts b/tests/boundary/pcap/pcapProviderCrossPlatform.test.tsindex 3d7f28b54..59ff76c57 100644--- a/tests/boundary/pcap/pcapProviderCrossPlatform.test.ts+++ b/tests/boundary/pcap/pcapProviderCrossPlatform.test.ts@@ -87,17 +87,22 @@ it.runIf(hasNativeBound)(},);-it("rejects a path that is not a readable file", async () => {- const result = await providerOver().execute({- operation: "inspect_pcap_capture",- input: { path: "/nonexistent/definitely-missing.pcap" },- });- expect(result.ok).toBe(false);- if (result.ok) return;- expect(projectAnalysisError(result.error)).toMatchObject({- code: "invalid_request",- });-});+// Hosts without a native bound refuse before touching the path; that order+// is pinned by the unsupported-boundary test below.+it.runIf(hasNativeBound)(+ "rejects a path that is not a readable file",+ async () => {+ const result = await providerOver().execute({+ operation: "inspect_pcap_capture",+ input: { path: "/nonexistent/definitely-missing.pcap" },+ });+ expect(result.ok).toBe(false);+ if (result.ok) return;+ expect(projectAnalysisError(result.error)).toMatchObject({+ code: "invalid_request",+ });+ },+);it("reports a missing binary as a capability gap", async () => {const provider = new PcapProvider({