a tester for pre-commit