Lines Matching refs:mock_check
349 def _test_file_filter(self, mock_check, func, files): argument
360 self.assertFalse(mock_check.called)
365 self.assertEqual(ret, mock_check.return_value)
373 def test_bpfmt(self, mock_check, _mock_run): argument
379 self.assertFalse(mock_check.called)
389 def test_checkpatch(self, mock_check, _mock_run): argument
393 self.assertEqual(ret, mock_check.return_value)
395 def test_clang_format(self, mock_check, _mock_run): argument
399 self.assertEqual(ret, mock_check.return_value)
401 def test_google_java_format(self, mock_check, _mock_run): argument
407 self.assertFalse(mock_check.called)
814 def test_cpplint(self, mock_check, _mock_run): argument
816 self._test_file_filter(mock_check, rh.hooks.check_cpplint,
819 def test_gofmt(self, mock_check, _mock_run): argument
825 self.assertFalse(mock_check.called)
833 def test_jsonlint(self, mock_check, _mock_run): argument
839 self.assertFalse(mock_check.called)
843 def test_ktfmt(self, mock_check, _mock_run): argument
849 self.assertFalse(mock_check.called)
865 def test_pylint(self, mock_check, _mock_run): argument
867 self._test_file_filter(mock_check, rh.hooks.check_pylint2,
870 def test_pylint2(self, mock_check, _mock_run): argument
872 self._test_file_filter(mock_check, rh.hooks.check_pylint2,
875 def test_pylint3(self, mock_check, _mock_run): argument
877 self._test_file_filter(mock_check, rh.hooks.check_pylint3,
880 def test_rustfmt(self, mock_check, _mock_run): argument
885 self.assertFalse(mock_check.called)
893 def test_xmllint(self, mock_check, _mock_run): argument
895 self._test_file_filter(mock_check, rh.hooks.check_xmllint,
898 def test_android_test_mapping_format(self, mock_check, _mock_run): argument
904 self.assertFalse(mock_check.called)
912 def test_aidl_format(self, mock_check, _mock_run): argument
918 self.assertFalse(mock_check.called)