remote-mediawiki tests: use a more idiomatic dispatch table
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Mon, 21 Sep 2020 10:39:51 +0000 (12:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Sep 2020 19:37:38 +0000 (12:37 -0700)
commitdde66eb6f1d29c6b5729b41904eaef69234be07c
treeffdac8fda79d805b223e4ce0b8daa0afaaf38c59
parent9ff2958dd8376869e1de9a34fdaf74121481bb3f
remote-mediawiki tests: use a more idiomatic dispatch table

Change the dispatch table code in test-gitmw.pl to use a hash where
subroutine references are the values. This is more obvious than a hash
where the values are strings we'll use to go searching around in the
symbol table for the function.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/mw-to-git/t/test-gitmw.pl