Home
last modified time | relevance | path

Searched refs:test_method (Results 1 – 25 of 87) sorted by relevance

1234

/aosp_15_r20/external/autotest/server/site_tests/bluetooth_AdapterQRHealth/
H A Dbluetooth_AdapterQRHealth.py28 test_method,
77 test_method()
100 test_method = lambda: self.qr_a2dp(device, test_profile) function
102 self.run_test_method(device, test_method, test_profile)
113 test_method = lambda: self.qr_power_cycle_a2dp(device, test_profile) function
115 self.run_test_method(device, test_method, test_profile)
126 test_method = lambda: self.qr_hfp_dut_as_src(device, test_profile) function
128 self.run_test_method(device, test_method, test_profile)
139 test_method = lambda: self.qr_hfp_dut_as_src(device, test_profile) function
141 self.run_test_method(device, test_method, test_profile)
[all …]
/aosp_15_r20/tools/test/connectivity/acts/framework/tests/metrics/loggers/
Dbounded_metrics_test.py64 self.assertEqual(result.test_method, 'test')
88 self.assertEqual(result.test_method, 'test')
101 test_method = PropertyMock()
103 type(result).test_method = test_method
105 test_method = PropertyMock()
106 type(result).test_method = test_method
116 test_method.assert_called_with('incredible_test')
123 test_method = PropertyMock()
125 type(result).test_method = test_method
136 test_method.assert_not_called()
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/python/autograph/impl/
H A Dapi_test.py147 def test_method(self, x, s, a): member in ApiTest.test_decorator_recursive.TestClass
153 x = tc.test_method(
167 def test_method(self, x, s, a): member in ApiTest.test_decorator_not_recursive.TestClass
173 x = tc.test_method(
188 def test_method(self, x, s, a): member in ApiTest.test_convert_then_do_not_convert.TestClass
194 x = tc.test_method(
211 def test_method(self, x, s, a): member in ApiTest.test_decorator_calls_decorated.TestClass
217 x = tc.test_method(
226 def test_method(self, a): member in ApiTest.test_decorator_preserves_argspec.TestClass
231 test_method_converted = api.convert()(test_method)
[all …]
/aosp_15_r20/external/python/absl-py/absl/testing/
Dparameterized.py276 def __init__(self, test_method, testcases, naming_type, original_name=None): argument
295 self._test_method = test_method
299 original_name = test_method.__name__
312 test_method = self._test_method
316 @functools.wraps(test_method)
319 return test_method(self, **testcase_params)
321 return test_method(self, *testcase_params)
323 return test_method(self, testcase_params)
376 if test_method.__doc__:
377 bound_param_test.__doc__ += '\n%s' % (test_method.__doc__,)
[all …]
/aosp_15_r20/external/python/mobly/mobly/
Dbase_test.py696 def _exec_one_test_with_retry(self, test_name, test_method, max_count): argument
714 previous_record = self.exec_one_test(test_name, test_method)
724 previous_record = self.exec_one_test(retry_name, test_method, new_record)
729 self, test_name, test_method, repeat_count, max_consecutive_error argument
760 new_test_name, test_method, new_record
780 def exec_one_test(self, test_name, test_method, record=None): argument
802 tr_record.uid = getattr(test_method, 'uid', None)
818 test_method()
1024 test_method = getattr(self, test_name)
1026 test_method = self._generated_test_table[test_name]
[all …]
/aosp_15_r20/external/cronet/third_party/protobuf/python/google/protobuf/internal/
H A D_parameterized.py195 def __init__(self, test_method, testcases, naming_type): argument
209 self._test_method = test_method
220 test_method = self._test_method
224 @functools.wraps(test_method)
227 test_method(self, **testcase_params)
229 test_method(self, *testcase_params)
231 test_method(self, testcase_params)
251 if test_method.__doc__:
252 BoundParamTest.__doc__ += '\n%s' % (test_method.__doc__,)
/aosp_15_r20/external/protobuf/python/google/protobuf/internal/
H A D_parameterized.py195 def __init__(self, test_method, testcases, naming_type): argument
209 self._test_method = test_method
220 test_method = self._test_method
224 @functools.wraps(test_method)
227 test_method(self, **testcase_params)
229 test_method(self, *testcase_params)
231 test_method(self, testcase_params)
251 if test_method.__doc__:
252 BoundParamTest.__doc__ += '\n%s' % (test_method.__doc__,)
/aosp_15_r20/external/cronet/third_party/protobuf/benchmarks/python/
H A Dpy_benchmark.py109 def __init__(self, module=None, test_method=None, argument
113 self.test_method = test_method
117 def set_test_method(self, test_method): argument
118 self.test_method = test_method
122 setup_code += "from %s import %s\n" % (self.module, self.test_method)
128 return timeit.timeit(stmt="%s(%s)" % (self.test_method, test_method_args),
138 t = timeit.timeit(stmt="%s(%s)" % (self.test_method, test_method_args),
/aosp_15_r20/external/protobuf/benchmarks/python/
H A Dpy_benchmark.py109 def __init__(self, module=None, test_method=None, argument
113 self.test_method = test_method
117 def set_test_method(self, test_method): argument
118 self.test_method = test_method
122 setup_code += "from %s import %s\n" % (self.module, self.test_method)
128 return timeit.timeit(stmt="%s(%s)" % (self.test_method, test_method_args),
138 t = timeit.timeit(stmt="%s(%s)" % (self.test_method, test_method_args),
/aosp_15_r20/external/pigweed/pw_rpc/pw_rpc_private/
H A Dtest_method.h57 const auto& test_method = static_cast<const TestMethod&>(context.method()); in InvokeForTest() local
58 test_method.last_channel_id_ = context.channel_id(); in InvokeForTest()
59 test_method.last_request_ = request; in InvokeForTest()
60 test_method.invocations_ += 1; in InvokeForTest()
67 if (test_method.move_to_call_ != nullptr) { in InvokeForTest()
68 *test_method.move_to_call_ = std::move(fake_call); in InvokeForTest()
102 constexpr const TestMethod& test_method() const { return impl_.test; } in test_method() function
/aosp_15_r20/external/tensorflow/tensorflow/python/framework/
H A Dtest_combinations.py269 for name, test_method in class_object.__dict__.copy().items():
271 isinstance(test_method, types.FunctionType)):
278 test_method, test_combinations=test_combinations),
285 test_method = _augment_with_special_arguments(
287 return parameterized.named_parameters(*named_combinations)(test_method)
292 def _augment_with_special_arguments(test_method, test_combinations): argument
317 requested_parameters = tf_inspect.getfullargspec(test_method).args
343 test_method(**kwargs_to_pass)
/aosp_15_r20/external/antlr/runtime/Python/unittests/
H A Dtestbase.py13 def wrapper(test_method): argument
16 test_method(*args, **kwargs)
20 raise BrokenTest(test_method.__name__, reason)
21 replacement.__doc__ = test_method.__doc__
22 replacement.__name__ = 'XXX_' + test_method.__name__
/aosp_15_r20/external/antlr/runtime/Python3/unittests/
H A Dtestbase.py13 def wrapper(test_method): argument
16 test_method(*args, **kwargs)
20 raise BrokenTest(test_method.__name__, reason)
21 replacement.__doc__ = test_method.__doc__
22 replacement.__name__ = 'XXX_' + test_method.__name__
/aosp_15_r20/external/autotest/client/common_lib/cros/bluetooth/
H A Dbluetooth_quick_tests_base.py151 def decorator(test_method): argument
159 @functools.wraps(test_method)
203 test_method(self)
206 test_method.__name__, str(e))
211 test_method.__name__, str(e))
216 test_method.__name__, str(e))
221 test_method.__name__, str(e))
/aosp_15_r20/external/clang/test/SemaCXX/
H A Dwarn-thread-safety-parsing.cpp123 void test_method() NO_THREAD_SAFETY_ANALYSIS;
247 void test_method() LOCKABLE; // \
287 void test_method() SCOPED_LOCKABLE; // \
591 void test_method() EXCLUSIVE_LOCK_FUNCTION();
666 void test_method() SHARED_LOCK_FUNCTION();
739 void test_method() EXCLUSIVE_TRYLOCK_FUNCTION(1);
816 void test_method() SHARED_TRYLOCK_FUNCTION(1);
882 void test_method() UNLOCK_FUNCTION();
961 void test_method() LOCK_RETURNED(mu1);
1028 void test_method() LOCKS_EXCLUDED(mu1);
[all …]
/aosp_15_r20/external/google-smali/examples/BracketedMemberNames/
H A DBracketedMemberNames.smali10 invoke-static {}, LBracketedMemberNames;->test_method()V
15 .method public static test_method()V
27 .method public static <test_method>()V
37 invoke-static {}, LBracketedMemberNames;-><test_method>()V
/aosp_15_r20/external/autotest/server/site_tests/bluetooth_AdapterAUHealth/
H A Dbluetooth_AdapterAUHealth.py31 def au_run_method(self, device, test_method, test_profile): argument
46 test_method()
146 def au_hfp_run_method(self, device, test_method, test_profile): argument
184 device, lambda: test_method(device, test_profile), test_profile)
310 def au_run_avrcp_method(self, device, test_method): argument
322 test_method(device)
/aosp_15_r20/external/tensorflow/tensorflow/python/autograph/operators/
H A Dpy_builtins_test.py508 def test_method(self): member in PyBuiltinsTest.test_super_in_original_context_unary_call.TestSubclass
516 self.assertEqual(tc.test_method(), 21)
526 def test_method(self): member in PyBuiltinsTest.test_super_in_original_context_binary_call.TestSubclass
533 self.assertEqual(tc.test_method(), 21)
543 def test_method(self): member in PyBuiltinsTest.test_super_in_original_context_niladic_call.TestSubclass
549 self.assertEqual(tc.test_method(), 21)
559 def test_method(self, x): member in PyBuiltinsTest.test_super_in_original_context_caller_with_locals.TestSubclass
567 self.assertEqual(tc.test_method(1), 21)
577 def test_method(self, x): member in PyBuiltinsTest.test_super_in_original_context_inner_function.TestSubclass
591 self.assertEqual(tc.test_method(1), 21)
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/python/distribute/
H A Dcombinations.py396 for name, test_method in six.iteritems(class_object.__dict__.copy()):
398 isinstance(test_method, types.FunctionType)):
399 setattr(class_object, name, _multi_worker_test(test_method))
524 def _multi_worker_test(test_method): argument
559 test_method(self, **kwargs)
610 argspec = tf_inspect.getfullargspec(test_method)
616 test_method, decorator, decorator_argspec=decorator_argspec)
/aosp_15_r20/external/tensorflow/tensorflow/examples/speech_commands/
H A Dtrain_test.py28 def requires_contrib(test_method): argument
32 test_method = unittest.skip(
34 test_method)
36 return test_method
/aosp_15_r20/external/autotest/server/cros/bluetooth/
H A Dbluetooth_adapter_tests.py482 def retry(test_method, instance, *args, **kwargs): argument
494 if _is_successful(_run_method(test_method, test_method.__name__,
499 logging.error('%s failed at the 1st time: (%s)', test_method.__name__,
504 logging.info('%s: retry the 2nd time.', test_method.__name__)
509 return _is_successful(_run_method(test_method, test_method.__name__,
518 logging.info('%s: retry the 2nd time.', test_method.__name__)
519 return _is_successful(_run_method(test_method, test_method.__name__,
550 def decorator(test_method): argument
558 @functools.wraps(test_method)
572 instance.last_test_method = test_method.__name__
[all …]
/aosp_15_r20/tools/asuite/atest/test_finders/
H A Dtest_finder_utils_unittest.py919 test_method = 'myTest::Method'
926 self.assertEqual(test_method, result['method_name'])
942 test_method = 'myTest::Method[0]'
949 self.assertEqual(test_method, result['method_name'])
954 test_method = 'myTest::Method[0],myTest::Method[1]'
961 self.assertEqual(test_method, result['method_name'])
965 test_method = 'myTest::Method'
985 test_method = 'myTest::Method'
992 self.assertEqual(test_method, result['method_name'])
1010 test_method = 'myTest0/Method[0]'
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/python/util/
H A Ddecorator_utils_test.py31 def test_method(self): member in GetQualifiedNameTest
34 decorator_utils.get_qualified_name(GetQualifiedNameTest.test_method))
100 def test_method(self): member in ValidateCallableTest
101 decorator_utils.validate_callable(self.test_method, "test")
/aosp_15_r20/external/python/cpython3/Lib/idlelib/idle_test/
Dtkinter_testing_utils.py30 def decorator(test_method): argument
31 @functools.wraps(test_method)
33 test_generator = test_method(self)
/aosp_15_r20/external/python/cpython3/Modules/_decimal/tests/
Ddeccheck.py930 def test_method(method, testspecs, testfunc): function
1251 do_single(method, lambda: test_method(method, testspecs, test_unary))
1254 do_single(method, lambda: test_method(method, testspecs, test_binary))
1258 do_single(name, lambda: test_method(method, testspecs, test_ternary))
1260 do_single('__format__', lambda: test_method('__format__', testspecs, test_format))
1261 do_single('__round__', lambda: test_method('__round__', testspecs, test_round))
1262 do_single('from_float', lambda: test_method('from_float', testspecs, test_from_float))
1263 do_single('quantize_api', lambda: test_method('quantize', testspecs, test_quantize_api))
1267 do_single(method, lambda: test_method(method, testspecs, test_unary))
1270 do_single(method, lambda: test_method(method, testspecs, test_binary))
[all …]

1234