]> git.ipfire.org Git - thirdparty/git.git/commit - t/test-lib-functions.sh
tests: consolidate the `file_size` function into `test-lib-functions.sh`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 7 Nov 2020 01:12:57 +0000 (01:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Nov 2020 06:05:08 +0000 (22:05 -0800)
commit53b67a801bbce7600f25823c39c7e9e7de8b72b3
tree69ab615ea3100abc20c1baa193c0152eaa30b349
parent898f80736c75878acc02dc55672317fcc0e0a5a6
tests: consolidate the `file_size` function into `test-lib-functions.sh`

In 8de7eeb54b6 (compression: unify pack.compression configuration
parsing, 2016-11-15), we introduced identical copies of the `file_size`
helper into three test scripts, with the plan to eventually consolidate
them into a single copy.

Let's do that, and adjust the function name to adhere to the `test_*`
naming convention.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Reviewed-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0021-conversion.sh
t/t1050-large.sh
t/t5315-pack-objects-compression.sh
t/t9303-fast-import-compression.sh
t/test-lib-functions.sh