SA Bugzilla – Bug 377
consolidate header existence tests
Last modified: 2002-06-05 14:37:28 UTC
There are a lot of tests that just test to see if a header exists and they could be consolidated -- all of the tests are basically the same, the descriptions are the same, and the 20_head_tests.cf file would be clearer if they all appeared in the same place. The format I am testing is: header X_EXAMPLE_HEADER_EXISTS exists:X-Example-Header No description line is needed, a description gets added by Conf.pm. Currently, I continue to do the Header =~ /./ test although a faster construction could be added to Conf.pm and/or EvalTests.pm without changing the rule format. Working example patch to be attached in a moment. Comments invited.
Created attachment 132 [details] working example code
You can ignore the part of the patch where DOUBLE_CAPSWORD is commented out.
added new version of header existence tests (older ones named *_PRESENT)
closing