/third_party/python/Lib/test/ |
H A D | test_readline.py | 49 def testHistoryUpdates(self): 55 self.assertEqual(readline.get_history_item(0), None) 56 self.assertEqual(readline.get_history_item(1), "first line") 57 self.assertEqual(readline.get_history_item(2), "second line") 60 self.assertEqual(readline.get_history_item(0), None) 61 self.assertEqual(readline.get_history_item(1), "replaced line") 62 self.assertEqual(readline.get_history_item(2), "second line") 64 self.assertEqual(readline.get_current_history_length(), 2) 67 self.assertEqual(readline.get_history_item(0), None) 68 self [all...] |
H A D | test_resource.py | 15 def test_args(self): 16 self.assertRaises(TypeError, resource.getrlimit) 17 self.assertRaises(TypeError, resource.getrlimit, 42, 42) 18 self.assertRaises(TypeError, resource.setrlimit) 19 self.assertRaises(TypeError, resource.setrlimit, 42, 42, 42) 23 def test_fsize_ismax(self): 34 self.assertEqual(resource.RLIM_INFINITY, max) 37 def test_fsize_enforced(self): 84 def test_fsize_toobig(self): 102 def test_getrusage(self) [all...] |
/third_party/python/Lib/distutils/command/ |
H A D | install_egg_info.py | 19 def initialize_options(self): 20 self.install_dir = None 22 def finalize_options(self): 23 self.set_undefined_options('install_lib',('install_dir','install_dir')) 25 to_filename(safe_name(self.distribution.get_name())), 26 to_filename(safe_version(self.distribution.get_version())), 29 self.target = os.path.join(self.install_dir, basename) 30 self.outputs = [self [all...] |
/third_party/python/Lib/ctypes/test/ |
H A D | test_unicode.py | 9 def test_wcslen(self): 14 self.assertEqual(wcslen("abc"), 3) 15 self.assertEqual(wcslen("ab\u2070"), 3) 16 self.assertRaises(ctypes.ArgumentError, wcslen, b"ab\xe4") 18 def test_buffers(self): 20 self.assertEqual(len(buf), 3+1) 23 self.assertEqual(buf[:], "ab\xe4\xf6\xfc\0") 24 self.assertEqual(buf[::], "ab\xe4\xf6\xfc\0") 25 self.assertEqual(buf[::-1], '\x00\xfc\xf6\xe4ba') 26 self [all...] |
/third_party/python/Lib/multiprocessing/ |
H A D | sharedctypes.py | 158 def get%s(self): 159 self.acquire() 161 return self._obj.%s 163 self.release() 164 def set%s(self, value): 165 self.acquire() 167 self._obj.%s = value 169 self.release() 182 def __init__(self, obj, lock=None, ctx=None): 183 self [all...] |
/third_party/skia/third_party/externals/spirv-headers/tools/buildHeaders/bin/ |
H A D | generate_language_headers.py | 81 def __init__(self, name, copyright, instructions, operand_kinds, version = None, revision = None): 82 self.name = name 83 self.copyright = copyright 84 self.instructions = instructions 85 self.operand_kinds = operand_kinds 86 self.version = version 87 self.revision = revision 93 def __init__(self): 94 self.upper_case_initial = re.compile('^[A-Z]') 97 def comment_prefix(self) [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Headers/tools/buildHeaders/bin/ |
H A D | generate_language_headers.py | 81 def __init__(self, name, copyright, instructions, operand_kinds, version = None, revision = None): 82 self.name = name 83 self.copyright = copyright 84 self.instructions = instructions 85 self.operand_kinds = operand_kinds 86 self.version = version 87 self.revision = revision 93 def __init__(self): 94 self.upper_case_initial = re.compile('^[A-Z]') 97 def comment_prefix(self) [all...] |
/third_party/spirv-headers/tools/buildHeaders/bin/ |
H A D | generate_language_headers.py | 81 def __init__(self, name, copyright, instructions, operand_kinds, version = None, revision = None): 82 self.name = name 83 self.copyright = copyright 84 self.instructions = instructions 85 self.operand_kinds = operand_kinds 86 self.version = version 87 self.revision = revision 93 def __init__(self): 94 self.upper_case_initial = re.compile('^[A-Z]') 97 def comment_prefix(self) [all...] |
/third_party/python/Modules/ |
H A D | xxlimited.c | 10 local variables other than 'self'. If your object type is needed in 19 def __init__(self): 21 self._x_attr = {} 22 self._x_exports = 0 24 def __getattr__(self, name): 25 return self._x_attr[name] 27 def __setattr__(self, name, value): 28 self._x_attr[name] = value 30 def __delattr__(self, name): 31 del self 99 XxoObject *self; newXxoObject() local 119 XxoObject *self = (XxoObject *)self_obj; Xxo_traverse() local 125 Xxo_clear(XxoObject *self) Xxo_clear() argument 134 XxoObject *self = (XxoObject *)self_obj; Xxo_finalize() local 139 Xxo_dealloc(PyObject *self) Xxo_dealloc() argument 153 Xxo_getattro(XxoObject *self, PyObject *name) Xxo_getattro() argument 169 Xxo_setattro(XxoObject *self, PyObject *name, PyObject *v) Xxo_setattro() argument 197 Xxo_demo(XxoObject *self, PyTypeObject *defining_class, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) Xxo_demo() argument 236 Xxo_getbuffer(XxoObject *self, Py_buffer *view, int flags) Xxo_getbuffer() argument 248 Xxo_releasebuffer(XxoObject *self, Py_buffer *view) Xxo_releasebuffer() argument 254 Xxo_get_x_exports(XxoObject *self, void *c) Xxo_get_x_exports() argument [all...] |
/third_party/node/deps/v8/tools/testrunner/testproc/ |
H A D | sequence.py | 18 def __init__(self, max_heavy): 25 super(SequenceProc, self).__init__() 27 self.max_heavy = max_heavy 28 self.n_heavy = 0 29 self.buffer = deque() 31 def next_test(self, test): 33 if self.n_heavy < self.max_heavy: 36 used = self._send_test(test) 38 self [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | gen_builtin_symbols.py | 753 def __init__(self, hashfn, num_names): 754 self.objs = OrderedDict() 755 self.max_name_length = 0 756 self.hashfn = hashfn 757 self.num_names = num_names 758 self.rule_offset = 0 760 def add_entry(self, essl_level, glsl_level, shader_type, name, symbol, essl_extension, 766 if len(name) > self.max_name_length: 767 self.max_name_length = len(name) 769 name_hash = mangledNameHash(name, self [all...] |
/third_party/node/deps/v8/tools/testrunner/local/ |
H A D | android.py | 21 def __init__(self, timeout, output=None): 22 self.timeout = timeout 23 self.output = output 27 def __init__(self, status, output): 28 self.status = status 29 self.output = output 34 def __init__(self, device=None): 53 self.device = device_utils.DeviceUtils.HealthyDevices( 57 self.pushed = set() 59 def tear_down(self) [all...] |
/third_party/mesa3d/src/util/perf/ |
H A D | u_trace.py | 35 def __init__(self, name, args=[], toggle_name=None, 53 self.name = name 54 self.args = args 57 self.tp_struct = tp_struct 58 self.tp_print = tp_print 59 self.tp_perfetto = tp_perfetto 60 self.end_of_pipe = end_of_pipe 61 self.toggle_name = toggle_name 63 TRACEPOINTS[name] = self 67 def can_generate_print(self) [all...] |
/third_party/python/Lib/test/test_importlib/import_/ |
H A D | test_meta_path.py | 17 def test_first_called(self): 22 self.assertIs(self.__import__(mod), first.modules[mod]) 24 def test_continuing(self): 29 first.find_spec = lambda self, fullname, path=None, parent=None: None 31 self.assertIs(self.__import__(mod_name), second.modules[mod_name]) 33 def test_empty(self): 43 self.assertIsNone(importlib._bootstrap._find_spec('nothing', 45 self [all...] |
/third_party/vk-gl-cts/scripts/log/ |
H A D | log_to_xml.py | 35 def __init__ (self, doc): 36 self.doc = doc 37 self.elementStack = [] 38 self.rootElements = [] 40 def getRootElements (self): 41 return self.rootElements 43 def pushElement (self, elem): 44 if len(self.elementStack) == 0: 45 self.rootElements.append(elem) 47 self [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_searchengine.py | 32 def __init__(self, *args, **kwargs): pass 36 def test_get(self): 42 self.assertIsInstance(engine, se.SearchEngine) 43 self.assertIs(root._searchengine, engine) 44 self.assertIs(se.get(root), engine) 50 def test_get_line_col(self): 51 self.assertEqual(se.get_line_col('1.0'), (1, 0)) 52 self.assertEqual(se.get_line_col('1.11'), (1, 11)) 54 self.assertRaises(ValueError, se.get_line_col, ('1.0 lineend')) 55 self [all...] |
/third_party/python/Lib/distutils/tests/ |
H A D | test_bdist_rpm.py | 27 def setUp(self): 33 super(BuildRpmTestCase, self).setUp() 34 self.old_location = os.getcwd() 35 self.old_sys_argv = sys.argv, sys.argv[:] 37 def tearDown(self): 38 os.chdir(self.old_location) 39 sys.argv = self.old_sys_argv[0] 40 sys.argv[:] = self.old_sys_argv[1] 41 super(BuildRpmTestCase, self).tearDown() 55 def test_quiet(self) [all...] |
/third_party/python/Lib/idlelib/ |
H A D | pathbrowser.py | 11 def __init__(self, master, *, _htest=False, _utest=False): 15 self.master = master 16 self._htest = _htest 17 self._utest = _utest 18 self.init() 20 def settitle(self): 22 self.top.wm_title("Path Browser") 23 self.top.wm_iconname("Path Browser") 25 def rootnode(self): 31 def GetText(self) [all...] |
H A D | autoexpand.py | 22 def __init__(self, editwin): 23 self.text = editwin.text 24 self.bell = self.text.bell 25 self.state = None 27 def expand_word_event(self, event): 29 curinsert = self.text.index("insert") 30 curline = self.text.get("insert linestart", "insert lineend") 31 if not self.state: 32 words = self [all...] |
/third_party/skia/third_party/externals/brotli/python/tests/ |
H A D | compressor_test.py | 20 def tearDown(self): 21 self.compressor = None 23 def _check_decompression(self, test_data): 31 self.assertFilesMatch(temp_uncompressed, original) 33 def _test_single_process(self, test_data): 38 out_file.write(self.compressor.process(in_file.read())) 39 out_file.write(self.compressor.finish()) 40 self._check_decompression(test_data) 42 def _test_multiple_process(self, test_data): 47 read_chunk = functools.partial(in_file.read, self [all...] |
/third_party/python/Doc/includes/ |
H A D | custom2.c | 13 Custom_dealloc(CustomObject *self) in Custom_dealloc() argument 15 Py_XDECREF(self->first); in Custom_dealloc() 16 Py_XDECREF(self->last); in Custom_dealloc() 17 Py_TYPE(self)->tp_free((PyObject *) self); in Custom_dealloc() 23 CustomObject *self; in Custom_new() local 24 self = (CustomObject *) type->tp_alloc(type, 0); in Custom_new() 25 if (self != NULL) { in Custom_new() 26 self->first = PyUnicode_FromString(""); in Custom_new() 27 if (self in Custom_new() 42 Custom_init(CustomObject *self, PyObject *args, PyObject *kwds) Custom_init() argument 78 Custom_name(CustomObject *self, PyObject *Py_UNUSED(ignored)) Custom_name() argument [all...] |
/third_party/node/deps/v8/tools/testrunner/ |
H A D | standard_runner.py | 69 def __init__(self, *args, **kwargs): 70 super(StandardTestRunner, self).__init__(*args, **kwargs) 72 self.sancov_dir = None 73 self._variants = None 76 def framework_name(self): 79 def _get_default_suite_names(self): 82 def _add_parser_options(self, parser): 152 def _process_options(self, options): 154 self.sancov_dir = options.sancov_dir 155 if not os.path.exists(self [all...] |
/build/test/example/ |
H A D | test_build_option.py | 565 def test_target_cpu(self, cpu_para): 569 cmd = self.CMD.format('--target-cpu', cpu_para).split() 571 result = self.get_match_result(cmd, "target_cpu", cpu_para) 576 def test_ccache(self, ccache_para): 580 cmd = self.CMD.format('--ccache', ccache_para).split() 582 result = self.get_match_result(cmd, "ccache", ccache_para) 587 def test_rename_last_log(self, rename_last_log_para): 591 cmd = self.CMD.format('--rename-last-log', rename_last_log_para).split() 595 if self.is_exist(self [all...] |
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
H A D | message.c | 42 MessageHeader* self = (MessageHeader *)_self; in Message_mark() local 43 layout_mark(self->descriptor->layout, Message_data(self)); in Message_mark() 46 void Message_free(void* self) { in Message_free() argument 47 stringsink* unknown = ((MessageHeader *)self)->unknown_fields; in Message_free() 52 xfree(self); in Message_free() 81 static const upb_fielddef* which_oneof_field(MessageHeader* self, const upb_oneofdef* o) { in which_oneof_field() argument 86 slot_read_oneof_case(self->descriptor->layout, Message_data(self), o); in which_oneof_field() 146 static int extract_method_call(VALUE method_name, MessageHeader* self, in extract_method_call() argument 288 MessageHeader* self; Message_method_missing() local 381 MessageHeader* self; Message_respond_to_missing() local 408 MessageHeader* self; Message_initialize_kwarg() local 483 MessageHeader* self; Message_initialize() local 511 MessageHeader* self; Message_dup() local 528 MessageHeader* self; Message_deep_copy() local 553 MessageHeader* self; Message_eq() local 577 MessageHeader* self; Message_hash() local 592 MessageHeader* self; Message_inspect() local 612 MessageHeader* self; Message_to_h() local 675 MessageHeader* self; Message_index() local 694 MessageHeader* self; Message_index_set() local 771 enum_lookup(VALUE self, VALUE number) enum_lookup() argument 791 enum_resolve(VALUE self, VALUE sym) enum_resolve() argument 812 enum_descriptor(VALUE self) enum_descriptor() argument 850 Google_Protobuf_deep_copy(VALUE self, VALUE obj) Google_Protobuf_deep_copy() argument [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/ |
H A D | _structures.py | 7 def __repr__(self) -> str: 10 def __hash__(self) -> int: 11 return hash(repr(self)) 13 def __lt__(self, other: object) -> bool: 16 def __le__(self, other: object) -> bool: 19 def __eq__(self, other: object) -> bool: 20 return isinstance(other, self.__class__) 22 def __gt__(self, other: object) -> bool: 25 def __ge__(self, other: object) -> bool: 28 def __neg__(self [all...] |