Add a PRESUBMIT check that production code does not call test code
authorjochen@chromium.org <jochen@chromium.org>
Tue, 23 Sep 2014 08:14:06 +0000 (08:14 +0000)
committerjochen@chromium.org <jochen@chromium.org>
Tue, 23 Sep 2014 08:14:06 +0000 (08:14 +0000)
commit24aead2a5a260095081e36501f273e84249598bf
tree3647cfdd9e56153d507d1523a9f598807e8ccff7
parent363b0e2fd261c5d6e91098b05cf66ab6d1efab47
Add a PRESUBMIT check that production code does not call test code

This is based on a regular expression matching anything in a namespace
ending in test, or a method containing the words ForTest, ForTesting,
for_test, or for_testing.

It is possible to blacklist entire directories or individual files.

BUG=none
LOG=n
R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/589123002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24134 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
PRESUBMIT.py