summaryrefslogtreecommitdiff
path: root/t/helper/test-tool.h
diff options
context:
space:
mode:
authorAlexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>2019-12-31 10:15:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-15 20:14:20 (GMT)
commitd0d0a357a18c5ce2e9586db28de753309e19f282 (patch)
treee6fd3bd83be71f8ec32b3797092a8a5ad3b69022 /t/helper/test-tool.h
parent568cabb2fed8e5e61057ac678a70a565dffd0763 (diff)
downloadgit-d0d0a357a18c5ce2e9586db28de753309e19f282.zip
git-d0d0a357a18c5ce2e9586db28de753309e19f282.tar.gz
git-d0d0a357a18c5ce2e9586db28de753309e19f282.tar.bz2
t: directly test parse_pathspec_file()
Previously, `parse_pathspec_file()` was tested indirectly by invoking git commands with properly crafted inputs. As demonstrated by the previous bugfix, testing complicated black boxes indirectly can lead to tests that silently test the wrong thing. Introduce direct tests for `parse_pathspec_file()`. Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-tool.h')
-rw-r--r--t/helper/test-tool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h
index 8ed2af7..c8549fd 100644
--- a/t/helper/test-tool.h
+++ b/t/helper/test-tool.h
@@ -29,6 +29,7 @@ int cmd__mktemp(int argc, const char **argv);
int cmd__oidmap(int argc, const char **argv);
int cmd__online_cpus(int argc, const char **argv);
int cmd__parse_options(int argc, const char **argv);
+int cmd__parse_pathspec_file(int argc, const char** argv);
int cmd__path_utils(int argc, const char **argv);
int cmd__pkt_line(int argc, const char **argv);
int cmd__prio_queue(int argc, const char **argv);