diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-08-20 11:33:53 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-20 11:33:53 -0700 |
commit | ace1f99cc8cf0a688f36c094552f90a398eb137f (patch) | |
tree | 09e7c492f8cae8e078ff91df706901308c8504fc /t/chainlint/here-doc.test | |
parent | Merge branch 'sg/t5310-empty-input-fix' (diff) | |
parent | chainlint: add test of pathological case which triggered false positive (diff) | |
download | tgif-ace1f99cc8cf0a688f36c094552f90a398eb137f.tar.xz |
Merge branch 'es/chain-lint-more'
Improve built-in facility to catch broken &&-chain in the tests.
* es/chain-lint-more:
chainlint: add test of pathological case which triggered false positive
chainlint: recognize multi-line quoted strings more robustly
chainlint: let here-doc and multi-line string commence on same line
chainlint: recognize multi-line $(...) when command cuddled with "$("
chainlint: match 'quoted' here-doc tags
chainlint: match arbitrary here-docs tags rather than hard-coded names
Diffstat (limited to 't/chainlint/here-doc.test')
-rw-r--r-- | t/chainlint/here-doc.test | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/chainlint/here-doc.test b/t/chainlint/here-doc.test index bd36f6e1d3..f2bb14b693 100644 --- a/t/chainlint/here-doc.test +++ b/t/chainlint/here-doc.test @@ -7,6 +7,20 @@ quoth the raven, nevermore... EOF +# LINT: swallow here-doc with arbitrary tag +cat <<-Arbitrary_Tag_42 >foo && +snoz +boz +woz +Arbitrary_Tag_42 + +# LINT: swallow 'quoted' here-doc +cat <<'FUMP' >bar && +snoz +boz +woz +FUMP + # LINT: swallow here-doc (EOF is last line of test) horticulture <<\EOF gomez |