test: name tests after the behavior they check, not a removed limit (#11618)

* test: name tests after the behavior they check, not a removed limit

Thirty-one test titles still said "beyond/above/after the former ..." for
limits that no longer exist. They now state what the test checks (the size,
count or depth it exercises, or the bound that still applies, such as
max_snapshot_bytes for the managed manifest snapshot). Test bodies are
unchanged.

Refs #10515

* test: say "more than" where a title counts only part of its fixture
This commit is contained in:
morluto authored and GitHub committed 2026-11-16 08:42:11 +08:00
1 parent 34ec903786
commit d6af08e4be
26 files changed
+31 -31

No files matched your search

@@ -310,7 +310,7 @@ describe("evidence ledger metadata imports", () => {
expect(ledger.export().records).toHaveLength(10_001);
});
it("retains inline evidence larger than the former session byte quota", () => {
it("retains an inline Evidence record above 64 MiB", () => {
const ledger = new EvidenceLedger();
const record = createEvidence(TARGET, PROVIDER, {
operation: "health",
@@ -1467,7 +1467,7 @@ describe("contextual JavaScript artifact path resolution", () => {
).toMatchObject({ resolution_status: "not-found", resolved_path: null });
});
it("resolves inventoried paths longer than the former character ceiling", () => {
it("resolves an inventoried path of more than 5,000 characters", () => {
const declaredPath = `./${"a".repeat(5_000)}.js`;
const expectedPath = `app/${declaredPath.slice(2)}`;
const files = fileMap([
@@ -1588,7 +1588,7 @@ describe("JavaScript file URL resolution", () => {
});
describe("contextual JavaScript package path resolution", () => {
it("follows package entrypoints beyond the former recursion ceiling", () => {
it("follows a long chain of package entrypoints", () => {
const files = fileMap([
file("app/consumer.js", "root"),
file(
@@ -878,7 +878,7 @@ describe("native UI trace boundaries", () => {
});
});
it("matches handlers after the dispatch inventory's former default limit", async () => {
it("matches a handler listed after 5,000 unrelated names", async () => {
const names = Array.from({ length: 5_000 }, (_, index) => ({
address: `0x${(index + 1).toString(16)}`,
value: `unrelated_symbol_${index}`,
+1 -1
View File
@@ -28,7 +28,7 @@ describe("analysis profile commitments", () => {
).toBe(3);
});
it("commits parameter objects larger than the former byte ceiling", () => {
it("commits parameter objects above 64 KiB", () => {
const parameters = Object.fromEntries(
Array.from({ length: 5 }, (_, index) => [
`parameter-${String(index)}`,
+1 -1
View File
@@ -174,7 +174,7 @@ it("accepts caller-selected safe capture limits and rejects invalid bounds", ()
).toBe(false);
});
it("accepts complete browser inputs beyond former string length caps", () => {
it("accepts browser inputs with long values, secret names and paths", () => {
const longValue = "value".repeat(20_000);
const longToken = "a".repeat(70_000);
const longEnvironmentVariable = "SECRET_A".repeat(10_000);
+2 -2
View File
@@ -154,7 +154,7 @@ it("does not attach a content digest to redacted storage secrets", () => {
).toBe(false);
});
it("accepts complete storage, history, and text artifacts beyond former caps", () => {
it("accepts complete storage, history, and text artifacts above 1 MiB", () => {
const text = "x".repeat(1_048_577);
const fingerprint = {
name: "entry",
@@ -206,7 +206,7 @@ it("accepts complete storage, history, and text artifacts beyond former caps", (
expect(parsed.success).toBe(true);
});
it("accepts complete scenario output beyond former string caps", () => {
it("accepts complete scenario output with long step strings", () => {
const longText = "detail".repeat(1_000);
const step = (index: number) => ({
step_index: index,
@@ -144,7 +144,7 @@ it("limits unary-plus keys to transparent numeric literals", () => {
).toBeNull();
});
it("reads nested inline object spreads beyond the former evaluator depth cap", () => {
it("reads an inline object nested in 1,024 spreads", () => {
let object = t.objectExpression([
t.objectProperty(t.identifier("stdio"), t.stringLiteral("inherit")),
]);
@@ -5,7 +5,7 @@ import type { JsonValue } from "../jsonValue.js";
import { findApplicationFeatureSeeds } from "./javascriptFeatureSeed.js";
describe("application feature seed property matching", () => {
it("finds strings after the former property count ceiling", () => {
it("finds a string after 512 other property values", () => {
const node = graphNodeWithProperties({
values: Array.from({ length: 513 }, (_, index) => `value-${index}`),
});
@@ -27,7 +27,7 @@ describe("application feature seed property matching", () => {
]);
});
it("finds strings deeper than the former traversal cutoff", () => {
it("finds a string seven properties deep", () => {
const node = graphNodeWithProperties({
one: {
two: { three: { four: { five: { six: { seven: "deep-value" } } } } },
@@ -331,7 +331,7 @@ describe("tRPC binding identity and bundled syntax", () => {
]);
});
it("preserves procedure paths beyond the former nesting cutoff", () => {
it("preserves a procedure path of 64 segments", () => {
const path = Array.from({ length: 64 }, (_, i) => `router${i}`).join(".");
expect(rpcEndpoints(`root.${path}.useQuery();`)).toEqual([
{ kind: "network", value: path, mechanism: "trpc:procedure:useQuery" },
@@ -136,7 +136,7 @@ const node = (
evidenceContexts,
);
it("accepts semantic module paths longer than the former schema ceiling", () => {
it("accepts a semantic module path of more than 600 segments", () => {
const modulePath = `${"segment/".repeat(600)}entry.js`;
const evidenceContexts = new JavaScriptSemanticEvidenceContextRegistry();
expect(
@@ -194,7 +194,7 @@ it("returns only the referenced evidence contexts with resolvable trace facts",
);
});
it("traverses paths beyond the former fixed depth ceiling", () => {
it("traverses a path of 70 relations", () => {
const original = semanticFixtureGraph();
const input = constructionInput(original);
const evidenceContexts = registryForGraph(original);
@@ -5,7 +5,7 @@ import { createEvidence } from "../evidence.js";
import { managedReconstructionImportInputSchema } from "./managedReconstruction.js";
describe("managed reconstruction import input", () => {
it("accepts more than the former 50-method and 100-note ceilings", () => {
it("accepts more than 50 methods and 100 notes", () => {
const evidence = createEvidence(
unknownTarget("not-observed"),
{ id: "fixture", name: "Fixture", version: "1" },
@@ -13,7 +13,7 @@ import {
const digest = "a".repeat(64);
describe("reconstruction obligation ledger schemas", () => {
it("accepts manifests and ledgers above the former count ceilings", () => {
it("accepts manifests and ledgers with more than 10,000 entries", () => {
const binding = {
obligation_id: "obligation-1",
owner: {
@@ -537,7 +537,7 @@ describe("reconstruction verification outcomes", () => {
});
describe("reconstruction verification integrity", () => {
it("accepts evidence closures larger than the former count ceilings", () => {
it("accepts evidence closures with more than 20,000 ids", () => {
const evidenceIds = Array.from(
{ length: 20_101 },
(_, index) => `ev_${index.toString(16).padStart(64, "0")}`,
+1 -1
View File
@@ -485,7 +485,7 @@ describe("web bundle analyzer", () => {
expect(analyzed.completeness.status).toBe("complete");
});
it("analyzes AST nodes after the former fixed node ceiling", () => {
it("analyzes every AST node of a bundle with more than 250,000 nodes", () => {
const source = `${";".repeat(250_001)}fetch('/last');`;
const result = analyzeWebBundleFixture(inspection(source));
+1 -1
View File
@@ -28,7 +28,7 @@ describe("web content artifacts", () => {
).toBe(false);
});
it("preserves provider media types longer than the former field ceiling", () => {
it("preserves a provider media type of more than 300 characters", () => {
const mediaType = `application/${"x".repeat(300)}`;
const artifact = createWebTextArtifact("content", mediaType);
@@ -193,7 +193,7 @@ describe("CdpBrowserProvider: page cookie scope", () => {
});
describe("CdpBrowserProvider: complete storage fingerprints", () => {
it("fingerprints cache bodies above the former byte ceiling", async () => {
it("fingerprints cache bodies above 64 KiB", async () => {
const body = "x".repeat(64 * 1_024 + 1);
const browser = await startFakeCdpBrowser({ cachedResponseBody: body });
trackBrowser(browser);
@@ -1675,7 +1675,7 @@ describe("web source-map collection", () => {
expect(result.items).toHaveLength(requests.length);
});
it("includes source-map text above the former per-map byte budget", async () => {
it("includes source-map text above 8 MiB", async () => {
const content = "x".repeat(8 * 1_024 * 1_024 + 1);
const map = JSON.stringify({
version: 3,
@@ -667,7 +667,7 @@ it("does not assign one module origin to an export with colliding path encodings
});
describe("complete static application projections", () => {
it("retains exports and JSON keys beyond the former projection prefix", async () => {
it("retains all 140 exports and JSON keys", async () => {
const root = await moduleFixture();
const exportNames = Array.from(
{ length: 140 },
@@ -183,7 +183,7 @@ describe("readReferenceSource entries", () => {
});
});
it("reads a source file larger than the former 16 MiB ceiling", async () => {
it("reads a source file above 16 MiB", async () => {
const root = await createTestTempDirectory("rea-reference-large-");
const size = 16 * 1024 * 1024 + 1;
const bytes = Buffer.alloc(size, 0x61);
@@ -212,7 +212,7 @@ describe("readReferenceSource entries", () => {
);
});
it("traverses source directories deeper than the former depth ceiling", async () => {
it("traverses a source directory 40 levels deep", async () => {
const root = await createTestTempDirectory("rea-reference-deep-");
const segments = Array.from({ length: 40 }, (_, index) => `d${index}`);
const directory = join(root, ...segments);
@@ -576,7 +576,7 @@ describe("undeclared V8 runtime role", () => {
});
describe("V8 Inspector script retention", () => {
test("retains authorized script locations longer than the former byte ceiling", async () => {
test("retains an authorized script location of more than 20,000 characters", async () => {
const longUrl = `https://example.test/${"a".repeat(20_000)}`;
const fake = await startFakeV8Inspector({
targetUrl: longUrl,
@@ -599,7 +599,7 @@ describe("V8 Inspector script retention", () => {
}
});
test("returns every authorized script beyond the former collection ceiling", async () => {
test("returns every authorized script of a target with 2,005 scripts", async () => {
const fixture = await runtimeFixture();
const scriptUrls = [
pathToFileURL(fixture.entry).href,
+1 -1
View File
@@ -75,7 +75,7 @@ it("advertises strict masked-byte arguments and bounded pages", () => {
});
describe("read_bytes contract", () => {
it("accepts lengths above the former arbitrary ceiling and rejects zero", () => {
it("accepts any positive read length and rejects zero", () => {
const contract = OFFICIAL_TOOL_CONTRACTS.find(
({ name }) => name === "read_bytes",
);
@@ -239,7 +239,7 @@ it("preserves the resolver failure and retries its exact descriptor before verif
});
it.each([0x7fff_ffff, 0x8000_0000])(
"preserves the former readFile admission boundary before sparse input reads (%i bytes)",
"reads a snapshot of max_snapshot_bytes and refuses one byte more before reading (%i bytes)",
async (size) => {
const value = await fixture();
const parsed = await parseBinaryTarget(value.path);
@@ -1138,7 +1138,7 @@ describe("GhidraClient", () => {
},
);
it("accepts an owned-socket result above the former 64 MiB ceiling", async () => {
it("accepts an owned-socket result above 64 MiB", async () => {
const client = clientFor(new FixtureLauncher("oversized_result"));
const result = await client.callTool("list_strings", { document: null });
@@ -205,7 +205,7 @@ describe("HopperClient response lifecycle", () => {
});
});
it("accepts an owned-socket response above the former 10 MiB ceiling", async () => {
it("accepts an owned-socket response above 10 MiB", async () => {
const client = await startClient();
const label = "x".repeat(10 * 1024 * 1024 + 1);
+1 -1
View File
@@ -55,7 +55,7 @@ describe("binary production construction ownership", () => {
).toEqual([]);
});
it("rejects the former runtime composition exception", () => {
it("rejects an application module that re-exports composition", () => {
expect(
inspectModuleBoundaries(
"src/application/runtime.ts",