t3200: improve test style
commit8c5001c68e8f768e7b97cb5c366bc0b1e7a31ba7
authorKristoffer Haugsbakk <code@khaugsbakk.name>
Tue, 5 Mar 2024 20:29:39 +0000 (5 21:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Mar 2024 21:04:25 +0000 (5 13:04 -0800)
tree0c5ca2e2eab13792b3ed6eb2fa30b9757f7c3e15
parent3c2a3fdc388747b9eaf4a4a4f2035c1c9ddb26d0
t3200: improve test style

Some tests use a preliminary heredoc for `expect` or have setup and
teardown commands before and after, respectively. It is however
preferred to keep all the logic in the test itself. Let’s move these
into the tests.

Also:

• Remove a now-irrelevant comment about test placement and switch back
  to `main` post-test
• Prefer indented literal heredocs (`-\EOF`) except for a block which
  says that this is intentional

Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3200-branch.sh