/third_party/python/Lib/test/ |
H A D | test_patma.py | 31 case [*_]: 33 case {}: 39 case {}: 41 case [*_]: 135 case 0: 141 case 0 if False: 143 case 0 if True: 149 case 0: 151 case 0: 158 case [all...] |
H A D | test_named_expressions.py | 128 for case, target, code in cases: 130 with self.subTest(case=case): 139 for case, target, code in cases: 141 with self.subTest(case=case): 162 for case, code in cases: 163 with self.subTest(case=case): 182 for case, targe [all...] |
H A D | test_http_cookies.py | 53 for case in cases: 55 C.load(case['data']) 56 self.assertEqual(repr(C), case['repr']) 57 self.assertEqual(C.output(sep='\n'), case['output']) 58 for k, v in sorted(case['dict'].items()): 152 # is expected to do in this case. 269 # Try typical use case. Setting decent values.
|
H A D | test_turtle.py | 181 with self.subTest(case=test_case): 252 for case in cases: 253 with self.subTest(case=case): 254 (vec, rot), expected = case
|
/third_party/mesa3d/src/compiler/isaspec/ |
H A D | encode.py | 31 # from the decode case. (Or put another way, the decoded bitset 43 # // Second level - DisplayField() (case.display_fields() iterator) 58 # } else { // maps to the default case in bitset, ie. outside <override/> 66 def __init__(self, field, case): 69 if case.expr is not None: 70 self.expr = isa.expressions[case.expr] 78 def __init__(self, field, case): 81 if case.expr is not None: 82 self.expr = isa.expressions[case.expr] 89 def __init__(self, bitset, case, nam [all...] |
H A D | isa.py | 141 def __init__(self, case, xml): 142 self.isa = case.bitset.isa 144 self.name = case.bitset.name + '#assert' + str(len(case.fields)) 149 match, dontcare, mask = extract_pattern(xml, case.bitset.name) 181 """Class that encapsulates a single bitset case 186 self.name = bitset.name + '#case' + str(len(bitset.cases)) 223 case prefix (ie. how to choose/enumerate which leaf node bitset 231 if 'case-prefix' in xml.attrib: 232 self.case_prefix = xml.attrib['case [all...] |
/third_party/vk-gl-cts/scripts/ |
H A D | caselist_diff.py | 142 for case in cases: 146 if isWildcardPattern(src) and case[:len(src)-1] == src[:-1]: 147 renamed = dst + case[len(src)-1:] 149 elif case == src: 154 renames.append((case, renamed)) 155 case = renamed 157 # It is possible that some later case is renamed to case already seen in the list 158 assert not case in renamedSet or renamed != None 159 if case no [all...] |
H A D | testset.py | 62 case = line[6:].strip() 63 if len(case) > 0: 64 cases.append(case) 69 for case in caselist: 70 results.append(TestCaseResult(case, [])) 109 raise Exception("Duplicate result row for test case '%s'" % result.name) 111 raise Exception("Found %d results for test case '%s', expected %d" % (len(result.results), result.name, numResultItems)) 135 for case in results: 136 if case.name[:prefixLen] == prefix: 137 if case i [all...] |
H A D | check_resolution_list.py | 31 # filename -> [case name] 57 for case in cases: 58 if fnmatch(case, pattern): 59 matching.append(case) 78 # Pass 2: check that each case is specified by one rule 86 for case in matchingCases: 87 if case in markedCases: 88 fail("Case '%s' specified multiple times (when processing '%s')" % (case, pattern)) 89 markedCases.add(case) 91 for case i [all...] |
H A D | convert_case_list_to_xml.py | 47 case = TestCase(ancestorPath, "Test Group", "TestGroup") 48 parentCase.children.append(case) 49 caseNameHash[ancestorPath] = case 50 parentCase = case
|
/third_party/littlefs/scripts/ |
H A D | bench.py | 163 '(?P<case>\[\s*cases\s*\.\s*(?P<name>\w+)\s*\])' 166 if match and match.group('case'): 171 # sort in case toml parsing did not retain order 199 for name, case in sorted(cases.items(), 203 'path': path + (':%d' % case['lineno'] 204 if 'lineno' in case else ''), 208 **case}, 211 # combine per-case defines 213 set(case.defines) for case i [all...] |
H A D | test.py | 166 '(?P<case>\[\s*cases\s*\.\s*(?P<name>\w+)\s*\])' 169 if match and match.group('case'): 174 # sort in case toml parsing did not retain order 203 for name, case in sorted(cases.items(), 207 'path': path + (':%d' % case['lineno'] 208 if 'lineno' in case else ''), 213 **case}, 216 # combine per-case defines 218 set(case.defines) for case i [all...] |
/third_party/mesa3d/src/panfrost/bifrost/valhall/ |
H A D | test-assembly.py | 58 def record_case(case, error): 60 PASS.append(case) 62 FAIL.append((case, error)) 65 print("Expected positive and negative case lists") 72 for case in cases: 73 (machine, assembly) = case.split(' ') 74 record_case(case, positive_test(machine, assembly)) 80 for case in cases: 81 record_case(case, negative_test(case)) [all...] |
/third_party/musl/Benchmark/scripts/ |
H A D | compare_benchmark_result.py | 50 print(header_format.format("case", "before(ns)", "after(ns)", "(before - after / before)")) 55 ^([\S]+) # case name 74 case, time, cpu, iters = m.groups() 75 self.all_cases.append(case) if self.all_cases.count(case) == 0 else self.all_cases 76 current_data[case] = [float(time), float(cpu), float(iters)] 82 for case in self.all_cases: 83 before_data = self.benchmark_data_before[case][0] if case in self.benchmark_data_before.keys() else 0 84 after_data = self.benchmark_data_after[case][ [all...] |
/third_party/node/deps/v8/third_party/test262-harness/src/ |
H A D | test262.py | 137 def __init__(self, exit_code, stdout, stderr, case): 141 self.case = case 144 name = self.case.GetName() 145 mode = self.case.GetMode() 147 if self.case.IsNegative(): 149 print "--- expected error: %s ---\n" % self.case.GetNegativeType() 158 elif self.case.IsNegative(): 181 test_name = self.case.GetName() 182 test_mode = self.case [all...] |
/third_party/node/deps/v8/tools/testrunner/testproc/ |
H A D | shard_test.py | 39 for case in [ 48 cases.append("%s-Variant-%d" % (case, variant_index)) 50 for case in cases: 51 self.assertTrue(0 <= radix_hash(capacity=7, key=case) < 7)
|
/third_party/python/Lib/unittest/test/ |
H A D | test_runner.py | 9 from unittest.case import _Outcome 26 for case in cases: 27 tests = unittest.defaultTestLoader.loadTestsFromTestCase(case) 593 self.assertEqual(unittest.case._module_cleanups, 598 unittest.case.doModuleCleanups() 601 self.assertEqual(unittest.case._module_cleanups, []) 616 self.assertEqual(unittest.case._module_cleanups, 621 unittest.case.doModuleCleanups() 623 self.assertEqual(unittest.case._module_cleanups, []) 636 unittest.case [all...] |
/third_party/python/Lib/unittest/ |
H A D | loader.py | 13 from . import case, suite, util namespace 23 class _FailedTest(case.TestCase): 53 @case.skip(str(exception)) 57 TestClass = type("ModuleSkipped", (case.TestCase,), attrs) 123 if isinstance(obj, type) and issubclass(obj, case.TestCase): 141 The name may resolve either to a module, a test case class, a 142 test method within a test case class, or a callable object which 192 elif isinstance(obj, type) and issubclass(obj, case.TestCase): 196 issubclass(parent, case.TestCase)): 208 elif isinstance(test, case [all...] |
H A D | suite.py | 5 from . import case namespace 49 (case.TestCase, TestSuite)): 95 For use, create an instance of TestSuite, then add test case instances. 225 case.doModuleCleanups() 242 if addSkip is not None and isinstance(exception, case.SkipTest): 275 case.doModuleCleanups()
|
/third_party/node/tools/ |
H A D | test.py | 108 for case in cases: 109 if case.parallel: 110 self.parallel_queue.put_nowait(case) 112 self.sequential_queue.put_nowait(case) 157 # in case of threading problems. 193 case = test 194 case.thread_id = thread_id 196 case.serial_id = self.serial_id 198 self.AboutToRun(case) 202 output = case [all...] |
/third_party/vk-gl-cts/modules/gles3/scripts/ |
H A D | gen-invalid-implicit-conversions.py | 30 case ${{NAME}} 53 case ${{NAME}} 94 case = InvalidImplicitConversionCase(operation, t0, t1) 95 cases.append(case) 115 print("Generating shader case files.")
|
H A D | gen-large-constant-arrays.py | 32 case ${{NAME}} 108 case = LargeConstantArrayCase(caseName, variable 113 largeConstantArrayCases.append(case) 118 print("Generating shader case files.")
|
/third_party/vk-gl-cts/modules/gles2/scripts/ |
H A D | gen-invalid-implicit-conversions.py | 30 case ${{NAME}} 51 case ${{NAME}} 89 case = InvalidImplicitConversionCase(operation, t0, t1) 90 cases.append(case) 105 print("Generating shader case files.")
|
H A D | genutil.py | 51 def writeCase(f, case, indent, prefix): 52 print("\t%s" % (prefix + case.name)) 53 if isinstance(case, CaseGroup): 54 f.write(indentTextBlock('group %s "%s"\n\n' % (case.name, case.description), indent)) 55 for child in case.children: 56 writeCase(f, child, indent + 1, prefix + case.name + ".") 57 f.write(indentTextBlock("\nend # %s\n" % case.name, indent)) 60 fullPath = prefix + case.name 63 f.write(indentTextBlock(str(case) [all...] |
/third_party/node/deps/v8/third_party/test262-harness/test/ |
H A D | test_test262.py | 43 def __init__(self, case): 44 self.case = case
|