summaryrefslogtreecommitdiff
path: root/csum-file.c
diff options
context:
space:
mode:
authorLibravatar Jonathan Nieder <jrnieder@gmail.com>2011-05-21 14:22:28 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-05-21 22:29:30 -0700
commitf792a0b88ec24dd20c29282b4e022c7b48abd59b (patch)
tree0cc14788648d753889909f926559fd65d3af5d4d /csum-file.c
parentt4018 (funcname patterns): make .gitattributes state easier to track (diff)
downloadtgif-f792a0b88ec24dd20c29282b4e022c7b48abd59b.tar.xz
t4018 (funcname patterns): make configuration easier to track
Introduce a "test_config" function to set a configuration variable for use by a single test (automatically unsetting it when the assertion finishes). If this function is used consistently, the configuration used in a test_expect_success block can be read at the beginning of that block instead of requiring reading all the tests that come before. So it becomes a little easier to add new tests or rearrange existing ones without fear of breaking configuration. In particular, the test of alternation in xfuncname patterns also checks that xfuncname takes precedence over funcname variable as a sort of side-effect, since the latter leaks in from previous tests. In the new syntax, the test has to say explicitly what variables it is using, making the test clearer and a future regression in coverage from carelessly editing the script less likely. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'csum-file.c')
0 files changed, 0 insertions, 0 deletions