Skip to content

Commit 0900140

Browse files
committed
test(golden): coverage-confirmed-dead scenarios with preSetup clear-coverage
Add no-ingest (all medium) and post-ingest goldens; extend query-golden with per-scenario preSetup, clear-coverage step, and everyRowFieldEquals match.
1 parent 2f3e229 commit 0900140

8 files changed

Lines changed: 527 additions & 14 deletions

File tree

docs/plans/agent-enrichment-wave.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,4 @@ Each PR: `harden-pr full` (includes plan retirement) → merge. Do not batch pla
6565

6666
## Current slice
6767

68-
**Active:** Plan 3 slice **3.2** on `feat/coverage-confirmed-dead` — golden no-ingest (`confidence: medium`).
68+
**Active:** Plan 3 slice **3.4** (optional classifier) or PR harden — agent surfaces + changeset on `feat/coverage-confirmed-dead`.

fixtures/CAPABILITIES.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@
167167
"goldenScenarios": [
168168
"coverage-rows-after-ingest",
169169
"untested-and-dead",
170+
"coverage-confirmed-dead",
171+
"coverage-confirmed-dead-no-ingest",
170172
"refactor-risk-ranking",
171173
"files-by-coverage",
172174
"high-crap-score"
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
[
2+
{
3+
"name": "legacyClient",
4+
"kind": "function",
5+
"file_path": "src/api/client.ts",
6+
"line_start": 46,
7+
"coverage_pct": 0,
8+
"caller_count": 0,
9+
"confidence": "medium",
10+
"reason": "no_callers_and_coverage_unmeasured"
11+
},
12+
{
13+
"name": "useHelperA",
14+
"kind": "function",
15+
"file_path": "src/bench/homonym-consumer-a.ts",
16+
"line_start": 3,
17+
"coverage_pct": 0,
18+
"caller_count": 0,
19+
"confidence": "medium",
20+
"reason": "no_callers_and_coverage_unmeasured"
21+
},
22+
{
23+
"name": "useHelperB",
24+
"kind": "function",
25+
"file_path": "src/bench/homonym-consumer-b.ts",
26+
"line_start": 3,
27+
"coverage_pct": 0,
28+
"caller_count": 0,
29+
"confidence": "medium",
30+
"reason": "no_callers_and_coverage_unmeasured"
31+
},
32+
{
33+
"name": "MemberHost",
34+
"kind": "function",
35+
"file_path": "src/bench/jsx-member-gap.tsx",
36+
"line_start": 3,
37+
"coverage_pct": 0,
38+
"caller_count": 0,
39+
"confidence": "medium",
40+
"reason": "no_callers_and_coverage_unmeasured"
41+
},
42+
{
43+
"name": "ChildCard",
44+
"kind": "function",
45+
"file_path": "src/bench/jsx-synthesis/ChildCard.tsx",
46+
"line_start": 5,
47+
"coverage_pct": 0,
48+
"caller_count": 0,
49+
"confidence": "medium",
50+
"reason": "no_callers_and_coverage_unmeasured"
51+
},
52+
{
53+
"name": "PageShell",
54+
"kind": "function",
55+
"file_path": "src/bench/jsx-synthesis/PageShell.tsx",
56+
"line_start": 3,
57+
"coverage_pct": 0,
58+
"caller_count": 0,
59+
"confidence": "medium",
60+
"reason": "no_callers_and_coverage_unmeasured"
61+
},
62+
{
63+
"name": "UiPanel",
64+
"kind": "function",
65+
"file_path": "src/bench/jsx-ui-namespace.ts",
66+
"line_start": 1,
67+
"coverage_pct": 0,
68+
"caller_count": 0,
69+
"confidence": "medium",
70+
"reason": "no_callers_and_coverage_unmeasured"
71+
},
72+
{
73+
"name": "keepMe",
74+
"kind": "function",
75+
"file_path": "src/bench/stale-multi-helpers.ts",
76+
"line_start": 1,
77+
"coverage_pct": 0,
78+
"caller_count": 0,
79+
"confidence": "medium",
80+
"reason": "no_callers_and_coverage_unmeasured"
81+
},
82+
{
83+
"name": "dropMe",
84+
"kind": "function",
85+
"file_path": "src/bench/stale-multi-helpers.ts",
86+
"line_start": 5,
87+
"coverage_pct": 0,
88+
"caller_count": 0,
89+
"confidence": "medium",
90+
"reason": "no_callers_and_coverage_unmeasured"
91+
},
92+
{
93+
"name": "ApiBridge",
94+
"kind": "function",
95+
"file_path": "src/components/shop/ApiBridge.tsx",
96+
"line_start": 4,
97+
"coverage_pct": 0,
98+
"caller_count": 0,
99+
"confidence": "medium",
100+
"reason": "no_callers_and_coverage_unmeasured"
101+
},
102+
{
103+
"name": "ProductCard",
104+
"kind": "function",
105+
"file_path": "src/components/shop/ProductCard.tsx",
106+
"line_start": 10,
107+
"coverage_pct": 0,
108+
"caller_count": 0,
109+
"confidence": "medium",
110+
"reason": "no_callers_and_coverage_unmeasured"
111+
},
112+
{
113+
"name": "FormatPrice",
114+
"kind": "function",
115+
"file_path": "src/components/shop/ShopButton.tsx",
116+
"line_start": 4,
117+
"coverage_pct": 0,
118+
"caller_count": 0,
119+
"confidence": "medium",
120+
"reason": "no_callers_and_coverage_unmeasured"
121+
},
122+
{
123+
"name": "ShopButton",
124+
"kind": "function",
125+
"file_path": "src/components/shop/ShopButton.tsx",
126+
"line_start": 8,
127+
"coverage_pct": 0,
128+
"caller_count": 0,
129+
"confidence": "medium",
130+
"reason": "no_callers_and_coverage_unmeasured"
131+
},
132+
{
133+
"name": "prefetch",
134+
"kind": "function",
135+
"file_path": "src/consumer.ts",
136+
"line_start": 15,
137+
"coverage_pct": 0,
138+
"caller_count": 0,
139+
"confidence": "medium",
140+
"reason": "no_callers_and_coverage_unmeasured"
141+
},
142+
{
143+
"name": "run",
144+
"kind": "function",
145+
"file_path": "src/consumer.ts",
146+
"line_start": 22,
147+
"coverage_pct": 0,
148+
"caller_count": 0,
149+
"confidence": "medium",
150+
"reason": "no_callers_and_coverage_unmeasured"
151+
},
152+
{
153+
"name": "catchInnerArrowRethrow",
154+
"kind": "function",
155+
"file_path": "src/lib/complexity-fixture.ts",
156+
"line_start": 86,
157+
"coverage_pct": 0,
158+
"caller_count": 0,
159+
"confidence": "medium",
160+
"reason": "no_callers_and_coverage_unmeasured"
161+
},
162+
{
163+
"name": "catchDirectRethrow",
164+
"kind": "function",
165+
"file_path": "src/lib/complexity-fixture.ts",
166+
"line_start": 98,
167+
"coverage_pct": 0,
168+
"caller_count": 0,
169+
"confidence": "medium",
170+
"reason": "no_callers_and_coverage_unmeasured"
171+
},
172+
{
173+
"name": "ignoredExport",
174+
"kind": "function",
175+
"file_path": "src/orphan.ts",
176+
"line_start": 2,
177+
"coverage_pct": 0,
178+
"caller_count": 0,
179+
"confidence": "medium",
180+
"reason": "no_callers_and_coverage_unmeasured"
181+
},
182+
{
183+
"name": "orphanHelper",
184+
"kind": "function",
185+
"file_path": "src/orphan.ts",
186+
"line_start": 7,
187+
"coverage_pct": 0,
188+
"caller_count": 0,
189+
"confidence": "medium",
190+
"reason": "no_callers_and_coverage_unmeasured"
191+
},
192+
{
193+
"name": "_epochSeconds",
194+
"kind": "function",
195+
"file_path": "src/utils/date.ts",
196+
"line_start": 12,
197+
"coverage_pct": 0,
198+
"caller_count": 0,
199+
"confidence": "medium",
200+
"reason": "no_callers_and_coverage_unmeasured"
201+
},
202+
{
203+
"name": "nanoseconds",
204+
"kind": "function",
205+
"file_path": "src/utils/date.ts",
206+
"line_start": 19,
207+
"coverage_pct": 0,
208+
"caller_count": 0,
209+
"confidence": "medium",
210+
"reason": "no_callers_and_coverage_unmeasured"
211+
},
212+
{
213+
"name": "_hiResEpoch",
214+
"kind": "function",
215+
"file_path": "src/utils/date.ts",
216+
"line_start": 26,
217+
"coverage_pct": 0,
218+
"caller_count": 0,
219+
"confidence": "medium",
220+
"reason": "no_callers_and_coverage_unmeasured"
221+
},
222+
{
223+
"name": "nowIso",
224+
"kind": "function",
225+
"file_path": "src/utils/format.ts",
226+
"line_start": 14,
227+
"coverage_pct": 0,
228+
"caller_count": 0,
229+
"confidence": "medium",
230+
"reason": "no_callers_and_coverage_unmeasured"
231+
}
232+
]

0 commit comments

Comments
 (0)