Commit 8978434
authored
refactor: tests: add remaining tests (multi-command ones) besides ones with
* Fixes #1453.
This adds all multi-command refactor tests besides tests with `select`.
This runs multiple refactor commands with just multiple
`refactor(...).test()`s. This generates a separate snapshot for each
command, but this should be fine, and gives us more data to inspect if
anything goes wrong.
The old tests used `;` for this, which avoids running the refactorer
again. Now we run the refactorer from scratch for each command. This
avoids the need to `commit` in between certain commands in order to
re-evaluate the AST, as `commit` is broken (see #1605).select (#1619)20 files changed
Lines changed: 146 additions & 70 deletions
File tree
- c2rust-refactor/tests
- abstract
- autoretype_array
- autoretype_method
- multi_rewrite
- snapshots
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
| |||
216 | 215 | | |
217 | 216 | | |
218 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
219 | 257 | | |
220 | 258 | | |
221 | 259 | | |
| |||
289 | 327 | | |
290 | 328 | | |
291 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
292 | 352 | | |
293 | 353 | | |
294 | 354 | | |
| |||
File renamed without changes.
File renamed without changes.
0 commit comments