Repository navigation
Commit b633045
* Start #1089 child 1: remove suite asserts codes
Assisted-by: Claude Code:claude-opus-5-5
* Remove suite asserts codes, not sentences
The remove failure-path tests pinned whole English sentences in
--json mode and kept private copies of the envelope readers, so a
copy edit to a remove message broke them even when the exit code,
error code, events and bytes on disk were unchanged.
The --json tests now read the envelope through common::envelope and
check error codes, events, summary counts and on-disk state. Where a
message must name something, they check that token (a purl, a flag, a
path). Human-mode tests stay as the render checks, minus lines whose
disk state is asserted already. common::envelope gains event_purls,
and the file moves into the remove suite as remove_failure_paths.rs.
Refs #1089.
Assisted-by: Claude Code:claude-opus-5-5
* Share has_event; keep remedy and promise checks
Review follow-ups on the remove suite rewrite:
- has_event moves into common::envelope next to event_purls, with
self-tests (including a non-string purl) and a ratchet entry.
- The hosted refusal again checks the `git checkout --` remedy, and
the vendor flavor refusal the "manifest was not modified" promise.
- The mixed drift-keep human test checks the manifest on disk, since
it no longer reads the "Removed 1 patch" line.
- The --json preserve-state leg checks for no `Note:` line on stderr
instead of the note's wording.
- The module doc says which message parts the --json tests still read.
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9a5929a commit b633045
4 files changed
Lines changed: 151 additions & 141 deletions
File tree
- crates/socket-patch-cli/tests
- cli
- common
- remove
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | | - | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| 143 | + | |
141 | 144 | | |
142 | 145 | | |
143 | 146 | | |
| |||
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
237 | 280 | | |
238 | 281 | | |
239 | 282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
67 | 83 | | |
68 | 84 | | |
69 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
0 commit comments