Home
last modified time | relevance | path

Searched refs:cls (Results 101 - 125 of 861) sorted by relevance

12345678910>>...35

/third_party/python/Lib/
H A Dtyping.py275 def _check_generic(cls, parameters, elen):
276 """Check correct count for parameters of a generic cls (internal helper).
281 raise TypeError(f"{cls} is not a generic class")
284 raise TypeError(f"Too {'many' if alen > elen else 'few'} arguments for {cls};"
402 def __init_subclass__(cls, /, *args, **kwds):
473 def __subclasscheck__(self, cls):
512 def __new__(cls, *args, **kwargs):
513 if cls is Any:
515 return super().__new__(cls, *args, **kwargs)
1300 def __subclasscheck__(self, cls)
[all...]
/third_party/markupsafe/
H A D__init__.py68 cls, base: t.Any = "", encoding: t.Optional[str] = None, errors: str = "strict"
74 return super().__new__(cls, base)
76 return super().__new__(cls, base, encoding, errors)
200 def escape(cls, s: t.Any) -> "te.Self":
206 if rv.__class__ is not cls:
207 return cls(rv)
235 cls = self.__class__
236 return cls(l), cls(s), cls(
[all...]
/third_party/skia/third_party/externals/microhttpd/src/include/
H A Dmicrospdy.h586 * @param cls user specified value
592 (*SPDY_PanicCallback) (void * cls,
602 * @param cls client-defined closure
606 (*SPDY_NewSessionCallback) (void * cls,
616 * @param cls client-defined closure
623 (*SPDY_SessionClosedCallback) (void *cls,
631 * @param cls client-defined closure
638 (*SPDY_NameValueIterator) (void *cls,
649 * @param cls client-defined closure
670 (*SPDY_NewRequestCallback) (void *cls,
[all...]
/third_party/PyYAML/lib/yaml/
H A Dresolver.py26 def add_implicit_resolver(cls, tag, regexp, first):
27 if not 'yaml_implicit_resolvers' in cls.__dict__:
29 for key in cls.yaml_implicit_resolvers:
30 implicit_resolvers[key] = cls.yaml_implicit_resolvers[key][:]
31 cls.yaml_implicit_resolvers = implicit_resolvers
35 cls.yaml_implicit_resolvers.setdefault(ch, []).append((tag, regexp))
38 def add_path_resolver(cls, tag, path, kind=None):
51 if not 'yaml_path_resolvers' in cls.__dict__:
52 cls.yaml_path_resolvers = cls
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A Dtest_outwin.py15 def setUpClass(cls):
17 root = cls.root = Tk()
19 w = cls.window = outwin.OutputWindow(None, None, None, root)
20 cls.text = w.text = Text(root)
23 def tearDownClass(cls):
24 cls.window.close()
25 del cls.text, cls.window
26 cls.root.destroy()
27 del cls
[all...]
H A Dtest_history.py20 def setUpClass(cls):
21 cls.text = mkText()
22 cls.history = History(cls.text)
72 def setUpClass(cls):
74 cls.root = tk.Tk()
75 cls.root.withdraw()
86 def tearDownClass(cls):
87 cls.root.destroy()
88 del cls
[all...]
H A Dtest_tree.py13 def setUpClass(cls):
14 cls.root = Tk()
15 cls.root.withdraw()
18 def tearDownClass(cls):
19 cls.root.destroy()
20 del cls.root
H A Dtest_query.py211 def tearDownClass(cls):
212 query.platform = cls.orig_platform
321 def setUpClass(cls):
323 cls.root = root = Tk()
324 cls.root.withdraw()
325 cls.dialog = query.Query(root, 'TEST', 'test', _utest=True)
326 cls.dialog.destroy = mock.Mock()
329 def tearDownClass(cls):
330 del cls.dialog.destroy
331 del cls
[all...]
/test/testfwk/xdevice/plugins/devicetest/utils/
H A Dtime_util.py68 def get_formated_datetime(cls, time_value=None):
88 def get_formated_datetime_name(cls, time_val=None):
103 for _str in cls.get_formated_datetime(time_val).timetuple()[:6]:
108 def convert_formated_name(cls, convert_time,
119 def get_now_datetime(cls, time_format="%Y%m%d%H%M%S%f"):
130 def get_timeout_value(cls):
140 def get_formated_time(cls, time_format='%Y-%m-%d %H:%M:%S'):
149 def get_interval_timestamp(cls, start_format_time, end_format_time,
/third_party/nghttp2/tests/
H A Dend_to_end.py47 def setUpClass(cls):
48 cls.setUpServer([])
51 def setUpServer(cls, args):
52 cls.server = _run_server(_PORT, args)
56 def tearDownClass(cls):
57 _kill_server(cls.server)
95 def setUpClass(cls):
96 cls.setUpServer(['-3'])
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_tc_matchall.c12 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_egress_validate()
14 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_egress_validate()
15 struct flow_action *actions = &cls->rule->action; in cxgb4_matchall_egress_validate()
121 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_alloc_tc()
134 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_alloc_tc()
145 flow_action_for_each(i, entry, &cls->rule->action) in cxgb4_matchall_alloc_tc()
167 tc_port_matchall->egress.cookie = cls->cookie; in cxgb4_matchall_alloc_tc()
192 struct tc_cls_matchall_offload *cls) in cxgb4_matchall_mirror_alloc()
194 struct netlink_ext_ack *extack = cls->common.extack; in cxgb4_matchall_mirror_alloc()
203 flow_action_for_each(i, act, &cls in cxgb4_matchall_mirror_alloc()
11 cxgb4_matchall_egress_validate(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_egress_validate() argument
120 cxgb4_matchall_alloc_tc(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_alloc_tc() argument
191 cxgb4_matchall_mirror_alloc(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_mirror_alloc() argument
251 cxgb4_matchall_add_filter(struct net_device *dev, struct tc_cls_matchall_offload *cls, u8 filter_type) cxgb4_matchall_add_filter() argument
299 cxgb4_matchall_alloc_filter(struct net_device *dev, struct tc_cls_matchall_offload *cls) cxgb4_matchall_alloc_filter() argument
[all...]
/third_party/mbedtls/scripts/mbedtls_dev/
H A Dtest_data_generation.py60 def __new__(cls, *args, **kwargs):
62 cls.count += 1
63 return super().__new__(cls)
108 def generate_function_tests(cls) -> Iterator[test_case.TestCase]:
134 def generate_tests(cls) -> Iterator[test_case.TestCase]:
144 if issubclass(cls, BaseTest) and not inspect.isabstract(cls):
146 yield from cls.generate_function_tests()
147 for subclass in sorted(cls.__subclasses__(), key=lambda c: c.__name__):
H A Dbignum_core.py56 def generate_function_tests(cls) -> Iterator[test_case.TestCase]:
57 for input_hex, descr, counts in cls.DATA:
59 yield cls(input_hex, descr, count).create_test_case()
155 def generate_function_tests(cls) -> Iterator[test_case.TestCase]:
156 for bitsize, bitsize_description in cls.bitsizes:
157 for window_size in cls.window_sizes:
158 yield (cls(bitsize, bitsize_description, window_size)
269 def get_value_pairs(cls) -> Iterator[Tuple[str, str]]:
276 yield from cls.input_cases
279 def generate_function_tests(cls)
[all...]
/third_party/python/Modules/clinic/
H A D_dbmmodule.c.h33 _dbm_dbm_keys_impl(dbmobject *self, PyTypeObject *cls);
36 _dbm_dbm_keys(dbmobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _dbm_dbm_keys() argument
42 return _dbm_dbm_keys_impl(self, cls); in _dbm_dbm_keys()
55 _dbm_dbm_get_impl(dbmobject *self, PyTypeObject *cls, const char *key,
59 _dbm_dbm_get(dbmobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _dbm_dbm_get() argument
72 return_value = _dbm_dbm_get_impl(self, cls, key, key_length, default_value); in _dbm_dbm_get()
90 _dbm_dbm_setdefault_impl(dbmobject *self, PyTypeObject *cls, const char *key,
94 _dbm_dbm_setdefault(dbmobject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _dbm_dbm_setdefault() argument
107 return_value = _dbm_dbm_setdefault_impl(self, cls, key, key_length, default_value); in _dbm_dbm_setdefault()
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/testing/
H A DAssertUtils.java15 public static <T extends Throwable> T assertThrows(Class<T> cls, CheckedRunnable<T> fn) { in assertThrows() argument
19 if (cls.isInstance(t)) { in assertThrows()
20 return cls.cast(t); in assertThrows()
22 fail("expected " + cls.getName() + " but got " + t.getClass().getName()); in assertThrows()
24 fail("expected " + cls.getName() + " but nothing was thrown"); in assertThrows()
/test/testfwk/developer_test/src/core/command/
H A Dconsole.py61 def __new__(cls, *args, **kwargs):
62 if cls.__instance is None:
63 cls.__instance = super(Console, cls).__new__(cls, *args, **kwargs)
64 return cls.__instance
93 def argument_parser(cls, para_list):
265 cls._params_pre_processing(para_list)
267 cls._params_post_processing(options)
286 def _params_pre_processing(cls, para_lis
[all...]
/third_party/skia/third_party/externals/microhttpd/src/microspdy/
H A Dapplicationlayer.c35 spdy_callback_response_done(void *cls, in spdy_callback_response_done() argument
41 (void)cls; in spdy_callback_response_done()
54 * @param cls
59 spdy_handler_new_stream (void *cls, in spdy_handler_new_stream() argument
62 (void)cls; in spdy_handler_new_stream()
160 daemon->new_request_cb(daemon->cls, in spdy_handler_new_stream()
171 stream->cls = request; in spdy_handler_new_stream()
187 spdy_handler_new_data (void * cls, in spdy_handler_new_data() argument
193 return stream->session->daemon->received_data_cb(cls, stream->cls, bu in spdy_handler_new_data()
212 spdy_handler_response_queue_result(void * cls, struct SPDYF_Response_Queue *response_queue, enum SPDY_RESPONSE_RESULT status) spdy_handler_response_queue_result() argument
325 SPDY_start_daemon(uint16_t port, const char *certfile, const char *keyfile, SPDY_NewSessionCallback nscb, SPDY_SessionClosedCallback sccb, SPDY_NewRequestCallback nrcb, SPDY_NewDataCallback npdcb, void * cls, ...) SPDY_start_daemon() argument
711 SPDY_set_cls_to_session(struct SPDY_Session * session, void * cls) SPDY_set_cls_to_session() argument
738 SPDY_set_cls_to_request(struct SPDY_Request * request, void * cls) SPDY_set_cls_to_request() argument
[all...]
/third_party/python/Lib/test/
H A Dtest_genericclass.py163 def __class_getitem__(cls, item):
170 def __class_getitem__(cls, item):
171 return f'{cls.__name__}[{item.__name__}]'
178 def __class_getitem__(cls, item):
181 def __class_getitem__(cls, item):
182 return f'{cls.__name__}[{item.__name__}]'
189 def __class_getitem__(cls, item):
190 return f'{cls.__name__}[{item.__name__}]'
197 def __init_subclass__(cls):
198 def __class_getitem__(cls, ite
[all...]
H A Dtest_finalization.py13 def with_tp_del(cls):
15 def __new__(cls, *args, **kwargs):
22 def without_gc(cls):
24 def __new__(cls, *args, **kwargs):
47 def _cleanup(cls):
48 cls.survivors.clear()
49 cls.errors.clear()
52 cls.del_calls.clear()
53 cls.tp_del_calls.clear()
57 def test(cls)
[all...]
H A Dtest_asdl_parser.py22 def setUpClass(cls):
33 cls.asdl = module
34 cls.mod = cls.asdl.parse(os.path.join(parser_dir, 'Python.asdl'))
35 cls.assertTrue(cls.asdl.check(cls.mod), 'Module validation failed')
38 def tearDownClass(cls):
/third_party/skia/third_party/externals/microhttpd/src/testcurl/https/
H A Dtls_test_common.h53 void *cls; member
83 test_daemon_get (void * cls,
92 http_ahc (void *cls, struct MHD_Connection *connection,
97 http_dummy_ahc (void *cls, struct MHD_Connection *connection,
117 test_https_transfer (void *cls, const char *cipher_suite, int proto_version);
138 (*test_function) (void * cls, const char *cipher_suite,
/third_party/mbedtls/scripts/
H A Dassemble_changelog.py82 def extract_top_version(cls, changelog_file_content):
97 def version_title_text(cls, version_title):
102 def split_categories(cls, version_body):
111 def format_category(cls, title, body):
120 def is_released_version(cls, title):
128 def extract_top_version(cls, changelog_file_content):
130 m = re.search(cls._top_version_re, changelog_file_content)
135 name = re.match(cls._name_re, top_version_title).group(1)
136 if cls.is_released_version(top_version_title):
138 top_version_title = cls
[all...]
/third_party/skia/third_party/externals/microhttpd/src/examples/
H A Dspdy_response_with_callback.c42 response_callback (void *cls, in response_callback() argument
47 FILE *fd =(FILE*)cls; in response_callback()
60 response_done_callback(void *cls, in response_done_callback() argument
69 printf("answer for %s was sent\n", (char *)cls); in response_done_callback()
73 free(cls); in response_done_callback()
78 standard_request_handler(void *cls, in standard_request_handler() argument
89 (void)cls; in standard_request_handler()
/third_party/python/Lib/test/test_tools/
H A Dtest_md5sum.py17 def setUpClass(cls):
18 cls.script = os.path.join(scriptsdir, 'md5sum.py')
20 cls.fodder = os.path.join(os_helper.TESTFN_ASCII, 'md5sum.fodder')
21 with open(cls.fodder, 'wb') as f:
23 cls.fodder_md5 = b'd38dae2eb1ab346a292ef6850f9e1a0d'
24 cls.fodder_textmode_md5 = b'a8b07894e2ca3f2a4c3094065fa6e0a5'
27 def tearDownClass(cls):
/third_party/python/Modules/_sre/clinic/
H A Dsre.c.h170 _sre_SRE_Pattern_match_impl(PatternObject *self, PyTypeObject *cls,
175 _sre_SRE_Pattern_match(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _sre_SRE_Pattern_match() argument
224 return_value = _sre_SRE_Pattern_match_impl(self, cls, string, pos, endpos); in _sre_SRE_Pattern_match()
240 _sre_SRE_Pattern_fullmatch_impl(PatternObject *self, PyTypeObject *cls,
245 _sre_SRE_Pattern_fullmatch(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _sre_SRE_Pattern_fullmatch() argument
294 return_value = _sre_SRE_Pattern_fullmatch_impl(self, cls, string, pos, endpos); in _sre_SRE_Pattern_fullmatch()
312 _sre_SRE_Pattern_search_impl(PatternObject *self, PyTypeObject *cls,
317 _sre_SRE_Pattern_search(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in _sre_SRE_Pattern_search() argument
366 return_value = _sre_SRE_Pattern_search_impl(self, cls, string, pos, endpos); in _sre_SRE_Pattern_search()
453 _sre_SRE_Pattern_finditer_impl(PatternObject *self, PyTypeObject *cls,
458 _sre_SRE_Pattern_finditer(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Pattern_finditer() argument
527 _sre_SRE_Pattern_scanner(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Pattern_scanner() argument
647 _sre_SRE_Pattern_sub(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Pattern_sub() argument
701 _sre_SRE_Pattern_subn(PatternObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Pattern_subn() argument
1090 _sre_SRE_Scanner_match(ScannerObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Scanner_match() argument
1111 _sre_SRE_Scanner_search(ScannerObject *self, PyTypeObject *cls, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) _sre_SRE_Scanner_search() argument
[all...]

Completed in 16 milliseconds

12345678910>>...35