]> git.ipfire.org Git - thirdparty/git.git/commit
test-lib-functions: assert correct parameter count
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 12 Feb 2021 13:29:42 +0000 (14:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Feb 2021 19:58:21 +0000 (11:58 -0800)
commite7884b353b7f3b61c2b8ace086bc7e030946e270
tree743dbe4777add1d47ce731ff233155ed6b89a1a0
parent45a2686441b0ea53ad9acef8b01dad2efdd98a90
test-lib-functions: assert correct parameter count

Add assertions of the correct parameter count of various functions, in
particularly the wrappers for the shell "test" built-in.

In an earlier commit we fixed a bug with an incorrect number of
arguments being passed to "test_path_is_{file,missing}". Let's also
guard other similar functions from the same sort of misuse.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib-functions.sh