git/t/t4018
Johannes Sixt 9cc444f057 t4018: test cases showing that the cpp pattern misses many anchor points
Most of the tests show C++ code, but there is also a union definition and
a GNU style function definition that are not recognized.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-03-21 15:03:31 -07:00
..
cpp-c++-function t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-class-constructor t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-class-constructor-mem-init t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-class-definition t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-class-definition-derived t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-class-destructor t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-function-returning-global-type t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-function-returning-nested t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-function-returning-pointer t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-function-returning-reference t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-gnu-style-function t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-namespace-definition t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-operator-definition t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-skip-access-specifiers t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-skip-comment-block t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-skip-labels t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-struct-definition t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
cpp-struct-single-line t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-template-function-definition t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-union-definition t4018: test cases showing that the cpp pattern misses many anchor points 2014-03-21 15:03:31 -07:00
cpp-void-c-function t4018: test cases for the built-in cpp pattern 2014-03-21 15:03:29 -07:00
custom1-pattern t4018: convert custom pattern test to the new infrastructure 2014-03-21 15:02:57 -07:00
custom2-match-to-end-of-line t4018: convert custom pattern test to the new infrastructure 2014-03-21 15:02:57 -07:00
custom3-alternation-in-pattern t4018: convert custom pattern test to the new infrastructure 2014-03-21 15:02:57 -07:00
java-class-member-function t4018: convert java pattern test to the new infrastructure 2014-03-21 15:02:36 -07:00
perl-skip-end-of-heredoc t4018: convert perl pattern tests to the new infrastructure 2014-03-21 15:02:19 -07:00
perl-skip-forward-decl t4018: convert perl pattern tests to the new infrastructure 2014-03-21 15:02:19 -07:00
perl-skip-sub-in-pod t4018: convert perl pattern tests to the new infrastructure 2014-03-21 15:02:19 -07:00
perl-sub-definition t4018: convert perl pattern tests to the new infrastructure 2014-03-21 15:02:19 -07:00
perl-sub-definition-kr-brace t4018: convert perl pattern tests to the new infrastructure 2014-03-21 15:02:19 -07:00
README

How to write RIGHT test cases
=============================

Insert the word "ChangeMe" (exactly this form) at a distance of
at least two lines from the line that must appear in the hunk header.

The text that must appear in the hunk header must contain the word
"right", but in all upper-case, like in the title above.

To mark a test case that highlights a malfunction, insert the word
BROKEN in all lower-case somewhere in the file.

This text is a bit twisted and out of order, but it is itself a
test case for the default hunk header pattern. Know what you are doing
if you change it.

BTW, this tests that the head line goes to the hunk header, not the line
of equal signs.