]> git.ipfire.org Git - thirdparty/git.git/commit
t7001-mv.sh: modernizing test script using functions
authorDebra Obondo <debraobondo@gmail.com>
Fri, 4 Nov 2022 15:05:52 +0000 (15:05 +0000)
committerTaylor Blau <me@ttaylorr.com>
Fri, 4 Nov 2022 21:58:23 +0000 (17:58 -0400)
commit7cccf5b6c98ccca1a21fccbf3cd60978c5f8257d
tree6d7b3daf53780c91a64acf67776a1d5b15aa7e0b
parent63bba4fdd86d80ef061c449daa97a981a9be0792
t7001-mv.sh: modernizing test script using functions

Test script to verify the presence/absence of files, paths, directories,
symlinks and other features in 'git mv' command are using the command
format:

'test (-e|f|d|h|...)'

Replace them with helper functions of format:

'test_path_is_*'

Replacing idiomatic helper functions:

'! test_path_is_*'

with

'test_path_is_missing'

This uses values of 'test_path_bar' in place of '! test_path_foo' to
bring in the helpful factor of indicating the failure of tests after the
mv command has been used, that is, it echoes if the feature/test_path
exists.

Signed-off-by: Debra Obondo <debraobondo@gmail.com>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
t/t7001-mv.sh