/third_party/node/deps/v8/tools/testrunner/outproc/ |
H A D | base.py | 22 def process(self, output, reduction=None): 23 has_unexpected_output = self.has_unexpected_output(output) 25 self.regenerate_expected_files(output) 26 return self._create_result(has_unexpected_output, output, reduction) 28 def regenerate_expected_files(self, output): 31 def has_unexpected_output(self, output): 32 return self.get_outcome(output) not in self.expected_outcomes 34 def _create_result(self, has_unexpected_output, output, reduction): 51 def get_outcome(self, outpu [all...] |
/third_party/python/Lib/idlelib/ |
H A D | runscript.py | 38 def __init__(self, editwin): 39 self.editwin = editwin 42 self.flist = self.editwin.flist 43 self.root = self.editwin.root 45 self.cli_args = [] 46 self.perf = 0.0 # Workaround for macOS 11 Uni2; see bpo-42508. 48 def check_module_event(self, event): 49 if isinstance(self [all...] |
/third_party/python/Lib/test/ |
H A D | test_picklebuffer.py | 20 def check_memoryview(self, pb, equiv): 23 self.assertEqual(m.nbytes, expected.nbytes) 24 self.assertEqual(m.readonly, expected.readonly) 25 self.assertEqual(m.itemsize, expected.itemsize) 26 self.assertEqual(m.shape, expected.shape) 27 self.assertEqual(m.strides, expected.strides) 28 self.assertEqual(m.c_contiguous, expected.c_contiguous) 29 self.assertEqual(m.f_contiguous, expected.f_contiguous) 30 self.assertEqual(m.format, expected.format) 31 self [all...] |
H A D | test_cmd_line.py | 33 def test_directories(self): 37 def verify_valid_flag(self, cmd_line): 39 self.assertTrue(out == b'' or out.endswith(b'\n')) 40 self.assertNotIn(b'Traceback', out) 41 self.assertNotIn(b'Traceback', err) 44 def test_help(self): 45 self.verify_valid_flag('-h') 46 self.verify_valid_flag('-?') 47 out = self.verify_valid_flag('--help') 49 self [all...] |
H A D | test_userlist.py | 10 def test_getslice(self): 13 u = self.type2test(l) 15 self.assertEqual(u[:i], l[:i]) 16 self.assertEqual(u[i:], l[i:]) 18 self.assertEqual(u[i:j], l[i:j]) 20 def test_slice_type(self): 23 self.assertIsInstance(u[:], u.__class__) 24 self.assertEqual(u[:],u) 26 def test_add_specials(self): 29 self [all...] |
H A D | test_script_helper.py | 13 def test_assert_python_ok(self): 15 self.assertEqual(0, t[0], 'return code was not 0') 17 def test_assert_python_failure(self): 20 self.assertNotEqual(0, rc, 'return code should not be 0') 22 def test_assert_python_ok_raises(self): 24 with self.assertRaises(AssertionError) as error_context: 27 self.assertIn('command line:', error_msg) 28 self.assertIn('sys.exit(0)', error_msg, msg='unexpected command line') 30 def test_assert_python_failure_raises(self): 31 with self [all...] |
/kernel/linux/linux-5.10/tools/cgroup/ |
H A D | iocost_monitor.py | 67 def walk(self, blkcg, q_id, parent_path): 68 if not self.include_dying and \ 79 self.blkgs.append((path if path else '/', blkg)) 83 self.walk(c, q_id, path) 85 def __init__(self, root_blkcg, q_id, include_dying=False): 86 self.include_dying = include_dying 87 self.blkgs = [] 88 self.walk(root_blkcg, q_id, '') 90 def __iter__(self): 91 return iter(self [all...] |
/third_party/node/deps/v8/tools/ |
H A D | bigint-tester.py | 85 def EmitOne(self): raise NotImplementedError 88 def EmitTestCore(self): raise NotImplementedError 90 def EmitHeader(self): 93 def EmitData(self, count): 96 s.append(self.EmitOne()) 99 def EmitTestBody(self): 100 return TEST_BODY % self.EmitTestCore() 102 def PrintTest(self, count): 103 print(self.EmitHeader()) 104 print(self [all...] |
/third_party/protobuf/objectivec/DevTools/ |
H A D | pddm_tests.py | 43 def testParseEmpty(self): 46 self.assertEqual(len(result._macros), 0) 48 def testParseOne(self): 52 self.assertEqual(len(result._macros), 1) 54 self.assertIsNotNone(macro) 55 self.assertEquals(macro.name, 'foo') 56 self.assertEquals(macro.args, tuple()) 57 self.assertEquals(macro.body, 'body') 59 def testParseGeneral(self): 74 self [all...] |
/third_party/nghttp2/doc/_exts/rubydomain/ |
H A D | rubydomain.py | 82 def get_signature_prefix(self, sig): 88 def needs_arglist(self): 95 def handle_signature(self, sig, signode): 111 modname = self.options.get( 112 'module', self.env.temp_data.get('rb:module')) 113 classname = self.env.temp_data.get('rb:class') 114 if self.objtype == 'global': 126 separator = separators[self.objtype] 138 signode['class'] = self.class_name = classname 141 sig_prefix = self [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_queues.py | 14 async def _test_repr_or_str(self, fn, expect_id): 21 self.assertTrue(fn(q).startswith('<Queue'), fn(q)) 23 self.assertEqual(expect_id, id_is_present) 32 self.assertTrue('_getters[1]' in fn(q)) 36 self.assertEqual(0, await getter) 46 self.assertTrue('_putters[1]' in fn(q)) 50 self.assertTrue(putter.done()) 54 self.assertTrue('_queue=[1]' in fn(q)) 56 async def test_repr(self): 57 await self [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | cpp_driver_lite.py | 69 def __init__(self): 70 self.rerun = True 71 self.file_name = "" 72 self.execute_bin = "" 74 def __check_environment__(self, device_options): 77 self.error_message = "check environment failed" 81 def __check_config__(self, config=None): 84 def __execute__(self, request): 92 self.config = request.config 93 self [all...] |
/third_party/PyYAML/lib/yaml/ |
H A D | constructor.py | 24 def __init__(self): 25 self.constructed_objects = {} 26 self.recursive_objects = {} 27 self.state_generators = [] 28 self.deep_construct = False 30 def check_data(self): 32 return self.check_node() 34 def check_state_key(self, key): 38 if self.get_state_keys_blacklist_regexp().match(key): 42 def get_data(self) [all...] |
/test/testfwk/xdevice/src/xdevice/_core/context/ |
H A D | service.py | 30 def __init__(self, scheduler: Sub or None = None): 31 self._active = scheduler 33 def is_running(self) -> bool: 34 if self._active: 35 return self._active.is_executing() 38 def get_active_scheduler(self) -> Sub: 39 return self._active 43 def __init__(self): 44 self._lock = RLock() 45 self [all...] |
/third_party/node/deps/v8/tools/cppgc/ |
H A D | gen_cmake_test.py | 15 def BuildPrologue(self): 18 def BuildEpilogue(self): 26 def test_source_assignment(self): 27 self._CompileAndCheck( 28 f'set({self.CMAKE_TARGET_SOURCES} "source1.h" "source1.cc")', 31 def test_source_append(self): 32 self._CompileAndCheck( 33 f'list(APPEND {self.CMAKE_TARGET_SOURCES} "source1.h" "source1.cc")', 36 def test_source_remove(self): 37 self [all...] |
/third_party/python/Lib/ |
H A D | _sitebuiltins.py | 14 def __init__(self, name, eof): 15 self.name = name 16 self.eof = eof 17 def __repr__(self): 18 return 'Use %s() or %s to exit' % (self.name, self.eof) 19 def __call__(self, code=None): 35 def __init__(self, name, data, files=(), dirs=()): 37 self.__name = name 38 self [all...] |
/third_party/python/Lib/test/test_json/ |
H A D | test_scanstring.py | 6 def test_scanstring(self): 7 scanstring = self.json.decoder.scanstring 8 self.assertEqual( 12 self.assertEqual( 16 self.assertEqual( 20 self.assertEqual( 24 self.assertEqual( 28 self.assertEqual( 32 self.assertEqual( 36 self [all...] |
/third_party/mesa3d/.gitlab-ci/lava/utils/ |
H A D | log_follower.py | 42 def __post_init__(self): 43 section_is_created = bool(self.current_section) 45 self.current_section and self.current_section.has_started 47 self.log_hints = LAVALogHints(self) 53 def phase(self) -> LogSectionType: 55 self.current_section.type 56 if self.current_section 60 def __enter__(self) [all...] |
/third_party/mesa3d/src/vulkan/util/ |
H A D | vk_entrypoints.py | 34 def __init__(self, name): 36 self.name = name[2:] 37 self.alias = None 38 self.guard = None 39 self.entry_table_index = None 41 self.core_version = None 42 self.extensions = [] 44 def prefixed_name(self, prefix): 45 return prefix + '_' + self.name 48 def __init__(self, nam [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/ |
H A D | capture_replay_tests.py | 93 def __init__(self, command, logger, env=os.environ, pipe_stdout=PIPE_STDOUT): 98 self.proc_handle = subprocess.Popen( 101 self.proc_handle = subprocess.Popen(command, env=env, shell=False) 102 self._logger = logger 104 def Join(self, timeout): 105 self._logger.debug('Joining with subprocess %d, timeout %s' % (self.Pid(), str(timeout))) 106 output = self.proc_handle.communicate(timeout=timeout)[0] 111 return self.proc_handle.returncode, output 113 def Pid(self) [all...] |
/third_party/python/Modules/ |
H A D | mmapmodule.c | 179 mmap_close_method(mmap_object *self, PyObject *unused) in mmap_close_method() argument 181 if (self->exports > 0) { in mmap_close_method() 194 HANDLE map_handle = self->map_handle; in mmap_close_method() 195 HANDLE file_handle = self->file_handle; in mmap_close_method() 196 char *data = self->data; in mmap_close_method() 197 self->map_handle = NULL; in mmap_close_method() 198 self->file_handle = INVALID_HANDLE_VALUE; in mmap_close_method() 199 self->data = NULL; in mmap_close_method() 214 int fd = self->fd; in mmap_close_method() 215 char *data = self in mmap_close_method() 267 mmap_read_byte_method(mmap_object *self, PyObject *unused) mmap_read_byte_method() argument 279 mmap_read_line_method(mmap_object *self, PyObject *unused) mmap_read_line_method() argument 303 mmap_read_method(mmap_object *self, PyObject *args) mmap_read_method() argument 324 mmap_gfind(mmap_object *self, PyObject *args, int reverse) mmap_gfind() argument 370 mmap_find_method(mmap_object *self, PyObject *args) mmap_find_method() argument 377 mmap_rfind_method(mmap_object *self, PyObject *args) mmap_rfind_method() argument 384 is_writable(mmap_object *self) is_writable() argument 393 is_resizeable(mmap_object *self) is_resizeable() argument 410 mmap_write_method(mmap_object *self, PyObject *args) mmap_write_method() argument 438 mmap_write_byte_method(mmap_object *self, PyObject *args) mmap_write_byte_method() argument 462 mmap_size_method(mmap_object *self, PyObject *unused) mmap_size_method() argument 512 mmap_resize_method(mmap_object *self, PyObject *args) mmap_resize_method() argument 660 mmap_tell_method(mmap_object *self, PyObject *unused) mmap_tell_method() argument 667 mmap_flush_method(mmap_object *self, PyObject *args) mmap_flush_method() argument 702 mmap_seek_method(mmap_object *self, PyObject *args) mmap_seek_method() argument 741 mmap_move_method(mmap_object *self, PyObject *args) mmap_move_method() argument 768 mmap_closed_get(mmap_object *self, void *Py_UNUSED(ignored)) mmap_closed_get() argument 778 mmap__enter__method(mmap_object *self, PyObject *args) mmap__enter__method() argument 787 mmap__exit__method(PyObject *self, PyObject *args) mmap__exit__method() argument 793 mmap__repr__method(PyObject *self) mmap__repr__method() argument 839 mmap__sizeof__method(mmap_object *self, void *unused) mmap__sizeof__method() argument 852 mmap_madvise_method(mmap_object *self, PyObject *args) mmap_madvise_method() argument 931 mmap_buffer_getbuf(mmap_object *self, Py_buffer *view, int flags) mmap_buffer_getbuf() argument 942 mmap_buffer_releasebuf(mmap_object *self, Py_buffer *view) mmap_buffer_releasebuf() argument 948 mmap_length(mmap_object *self) mmap_length() argument 955 mmap_item(mmap_object *self, Py_ssize_t i) mmap_item() argument 966 mmap_subscript(mmap_object *self, PyObject *item) mmap_subscript() argument 1024 mmap_ass_item(mmap_object *self, Py_ssize_t i, PyObject *v) mmap_ass_item() argument 1051 mmap_ass_subscript(mmap_object *self, PyObject *item, PyObject *value) mmap_ass_subscript() argument [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_codecontext.py | 25 def __init__(self, a, b): 26 self.a = a 27 self.b = b 28 def compare(self): 39 def __init__(self, root, frame, text): 40 self.root = root 41 self.top = root 42 self.text_frame = frame 43 self.text = text 44 self [all...] |
/third_party/jinja2/ |
H A D | bccache.py | 26 def get(self, key: str) -> bytes: 29 def set(self, key: str, value: bytes, timeout: t.Optional[int] = None) -> None: 53 def __init__(self, environment: "Environment", key: str, checksum: str) -> None: 54 self.environment = environment 55 self.key = key 56 self.checksum = checksum 57 self.reset() 59 def reset(self) -> None: 61 self.code: t.Optional[CodeType] = None 63 def load_bytecode(self, [all...] |
/third_party/node/deps/v8/tools/testrunner/local/ |
H A D | command.py | 68 def __init__(self, shell, args=None, cmd_prefix=None, timeout=60, env=None, 86 self.shell = shell 87 self.args = args or [] 88 self.cmd_prefix = cmd_prefix or [] 89 self.timeout = timeout 90 self.env = env or {} 91 self.verbose = verbose 92 self.handle_sigterm = handle_sigterm 94 def execute(self): 95 if self [all...] |
/third_party/python/Lib/multiprocessing/ |
H A D | context.py | 41 def cpu_count(self): 49 def Manager(self): 56 m = SyncManager(ctx=self.get_context()) 60 def Pipe(self, duplex=True): 65 def Lock(self): 68 return Lock(ctx=self.get_context()) 70 def RLock(self): 73 return RLock(ctx=self.get_context()) 75 def Condition(self, lock=None): 78 return Condition(lock, ctx=self [all...] |