jj/lib/tests
Ilya Grigoriev 02a04d0d37 test_conflicts and test_resolve_command: use indoc! to indent conflict markers in tests
Apart from (IMO) looking nicer, this will also sidestep the potential problem
that if the file contains actual jj conflict markers (`>>>>>>>` in the beginning
of a line, for example), jj would currently have trouble materializing and
subsequently parsing conflicts in the file if it actually became conflicted.

I'll demo this bug in either this or a subsequent PR. It's the kind of bug that
sounds serious in theory but might never cause a problem in practice.

After this PR, only `docs/tutorial.md` has a conflict marker that's not indented.
There's only one there, so hopefully it won't be too much of a pain to deal with.

I also indented other strings in `test_conflicts.rs`. IMO, this looks nice and
more consistent with the `insta::assert_snapshot` output. I didn't spend the
time to do the same for `test_resolve_command`.
2024-03-22 23:27:25 -07:00
..
runner.rs sign: Add SSH backend tests 2024-02-20 00:02:08 +00:00
test_bad_locking.rs
test_commit_builder.rs
test_commit_concurrent.rs
test_conflicts.rs test_conflicts and test_resolve_command: use indoc! to indent conflict markers in tests 2024-03-22 23:27:25 -07:00
test_default_revset_graph_iterator.rs index: reorganize revset_graph_iterator as private module of default_index 2024-03-14 10:07:19 +09:00
test_diff_summary.rs
test_git.rs tests: fix concurrent git read/write test to retry on ref lock contention 2024-02-17 15:09:27 +09:00
test_git_backend.rs
test_gpg.rs gpg_signing: handle early termination of gpg command in verify path 2024-03-03 18:35:10 +09:00
test_id_prefix.rs
test_index.rs index: turn CompositeIndex into transparent reference type 2024-03-11 17:24:10 +09:00
test_init.rs
test_load_repo.rs
test_local_working_copy.rs working_copy: implement symlinks on windows with a helper function 2024-03-05 15:16:38 +08:00
test_local_working_copy_concurrent.rs
test_local_working_copy_sparse.rs
test_merge_trees.rs
test_merged_tree.rs clippy: new nightly fixes 2024-02-10 16:06:28 -08:00
test_mut_repo.rs
test_operations.rs operation: add shorthand for .store_operation().metadata 2024-02-25 09:00:56 +09:00
test_refs.rs
test_revset.rs revset: add substitution rule for "::x & ~(::y-)" 2024-03-17 14:50:48 +09:00
test_rewrite.rs rewrite: allow working-copy to be abandoned 2024-02-25 16:39:05 -08:00
test_signing.rs
test_ssh_signing.rs sign: Add SSH backend tests 2024-02-20 00:02:08 +00:00
test_view.rs
test_workspace.rs working_copy: add Send supertrait 2024-02-17 15:13:25 +08:00