Commit 8de106c
committed
test(mcp): derive size counts dynamically in annotations test
Follow-up to CodeRabbit feedback on rohitg00#1098: hardcoding 53 and 8
duplicated contracts owned elsewhere (tool-count-consistency.test.ts
owns the 53; ESSENTIAL_TOOLS.size is the source of truth for core).
Derive total via getAllTools().length and core via ESSENTIAL_TOOLS.size,
keeping the 23/26/4 classification counts and frozen name sets
hardcoded since those are the contract this test verifies. Adds a
partition sum invariant (23+4+26 === total) that now meaningfully
catches a new tool added without classification.
Refs rohitg00#1097
Signed-off-by: AJ Alon <alexander.joel.alon@gmail.com>1 parent 8ebfe49 commit 8de106c
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
138 | | - | |
| 141 | + | |
139 | 142 | | |
140 | | - | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
| 150 | + | |
147 | 151 | | |
148 | 152 | | |
149 | 153 | | |
| |||
152 | 156 | | |
153 | 157 | | |
154 | 158 | | |
155 | | - | |
156 | | - | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
0 commit comments