ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/testutils
Martin von Zweigbergk 3ef552c4c1 tests: add TestWorkspace::snapshot() to simplify snapshotting
It's currently a bit complicated to snapshot the working copy and
there's a lot of duplication in tests. This commit introduces a
function to simplify it. I made the function snapshot the working copy
and save the updated state. Some of the tests I changed previously
discarded the changes instead of saving them, but I think they all did
so because it was simpler. I left a few call sites unchanged because
they make concurrent changes.
2023-07-28 09:32:18 -07:00
..
src tests: add TestWorkspace::snapshot() to simplify snapshotting 2023-07-28 09:32:18 -07:00
Cargo.toml