• Home
  • Raw
  • Download

Lines Matching refs:ret

53         ret = []
64 ret.append(line)
65 return ''.join(ret)
106 ret = list(self.replacer.vars())
107 self.assertGreater(len(ret), 4)
108 self.assertIn('PREUPLOAD_COMMIT', ret)
217 ret = rh.hooks._run_command(['true'])
218 self.assertEqual(ret.returncode, 0)
224 ret = rh.hooks._get_build_os_name()
225 self.assertTrue(isinstance(ret, str))
226 self.assertNotEqual(ret, '')
231 ret = rh.hooks.get_helper_path('booga')
232 self.assertTrue(isinstance(ret, str))
233 self.assertNotEqual(ret, '')
261 ret = func(self.project, 'commit', desc, diff, options=self.options)
264 ret, None, msg='Should have accepted: {{{%s}}}' % (desc,))
267 ret, None, msg='Should have rejected: {{{%s}}}' % (desc,))
278 ret = func(self.project, 'commit', 'desc', (), options=self.options)
279 self.assertEqual(ret, None)
284 ret = func(self.project, 'commit', 'desc', diff, options=self.options)
285 self.assertEqual(ret, mock_check.return_value)
295 ret = rh.hooks.check_checkpatch(
297 self.assertEqual(ret, mock_check.return_value)
301 ret = rh.hooks.check_clang_format(
303 self.assertEqual(ret, mock_check.return_value)
307 ret = rh.hooks.check_google_java_format(
309 self.assertEqual(ret, mock_check.return_value)
474 ret = rh.hooks.check_gofmt(
476 self.assertEqual(ret, None)
481 ret = rh.hooks.check_gofmt(
483 self.assertNotEqual(ret, None)
488 ret = rh.hooks.check_json(
490 self.assertEqual(ret, None)
508 ret = rh.hooks.check_android_test_mapping(
510 self.assertIsNone(ret)
515 ret = rh.hooks.check_android_test_mapping(
517 self.assertIsNotNone(ret)