Repository navigation
Commit 22544e7
committed
Bound test-only list items in the source scan; gate composer refusal
Second review round.
- The production-source scan's `item_end` only stopped at a depth-0 `;`
or the end of the first depth-0 block, so a `#[cfg(test)]` struct
field, enum variant, match arm or parameter blanked code far past
itself (a whole following `impl`), hiding production references from
the no-lock-download and BOM guards. An item now ends at its `,` (with
generic `<...>` counted so `Result<(), ()>` does not end it) or at the
bracket enclosing it.
- `code_only` failed open (an empty file) on a UTF-8 slip; it panics now,
like `strip_test_items`.
- The module docs no longer claim the file an out-of-line test module
points at is dropped.
- `vendor --revert` of a composer entry refused over any unparseable
composer.lock. It still refuses when the lock names the entry's uuid,
but a broken lock that never mentions it cannot route composer at the
uuid dir and no longer blocks the revert.
- The BOM memo test re-seeds with two BOMs before asserting nothing was
stored; the CLI guard sorts its expected list.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 75b6ca3 commit 22544e7
3 files changed
Lines changed: 103 additions & 15 deletions
File tree
- crates
- socket-patch-cli/src/commands
- socket-patch-core/src/vendor
- test_support
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8197 | 8197 | | |
8198 | 8198 | | |
8199 | 8199 | | |
8200 | | - | |
| 8200 | + | |
8201 | 8201 | | |
8202 | 8202 | | |
8203 | 8203 | | |
| 8204 | + | |
8204 | 8205 | | |
8205 | 8206 | | |
8206 | 8207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
890 | 890 | | |
891 | 891 | | |
892 | 892 | | |
893 | | - | |
894 | | - | |
895 | | - | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
896 | 907 | | |
897 | 908 | | |
898 | 909 | | |
| |||
1912 | 1923 | | |
1913 | 1924 | | |
1914 | 1925 | | |
1915 | | - | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
1916 | 1932 | | |
1917 | 1933 | | |
1918 | 1934 | | |
| |||
3295 | 3311 | | |
3296 | 3312 | | |
3297 | 3313 | | |
3298 | | - | |
3299 | | - | |
| 3314 | + | |
| 3315 | + | |
| 3316 | + | |
| 3317 | + | |
| 3318 | + | |
3300 | 3319 | | |
3301 | 3320 | | |
3302 | 3321 | | |
3303 | 3322 | | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
| 3327 | + | |
3304 | 3328 | | |
3305 | 3329 | | |
3306 | 3330 | | |
| |||
4526 | 4550 | | |
4527 | 4551 | | |
4528 | 4552 | | |
| 4553 | + | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
| 4559 | + | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
4529 | 4572 | | |
4530 | 4573 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
211 | 220 | | |
212 | 221 | | |
| 222 | + | |
213 | 223 | | |
| 224 | + | |
214 | 225 | | |
215 | | - | |
| 226 | + | |
216 | 227 | | |
217 | 228 | | |
218 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
219 | 241 | | |
220 | 242 | | |
221 | 243 | | |
222 | 244 | | |
223 | 245 | | |
224 | 246 | | |
225 | 247 | | |
226 | | - | |
| 248 | + | |
227 | 249 | | |
228 | 250 | | |
229 | 251 | | |
| |||
313 | 335 | | |
314 | 336 | | |
315 | 337 | | |
316 | | - | |
317 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
318 | 341 | | |
319 | 342 | | |
320 | 343 | | |
| |||
372 | 395 | | |
373 | 396 | | |
374 | 397 | | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
375 | 419 | | |
376 | 420 | | |
377 | 421 | | |
| |||
0 commit comments