Home
last modified time | relevance | path

Searched refs:code2 (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_unparse.py125 code2 = ast.unparse(ast1)
126 ast2 = ast.parse(code2, **kwargs)
133 def get_source(self, code1, code2=None): argument
134 code2 = code2 or code1
136 return code1, code2
138 def check_src_roundtrip(self, code1, code2=None): argument
139 code1, code2 = self.get_source(code1, code2)
140 with self.subTest(code1=code1, code2=code2):
141 self.assertEqual(code2, code1)
143 def check_src_dont_roundtrip(self, code1, code2=None): argument
[all …]
Dtest_code.py243 code2 = func2.__code__
253 ("co_code", code2.co_code),
254 ("co_consts", code2.co_consts),
256 ("co_varnames", code2.co_varnames),
261 ("co_lnotab", code2.co_lnotab),
Dtest_parser.py863 code2 = parser.compilest(st)
864 self.assertEqual(eval(code2), -3)
/external/llvm-project/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITMemoryManagerTest.cpp21 uint8_t *code2 = MemMgr->allocateCodeSection(256, 0, 3, ""); in TEST() local
25 EXPECT_NE((uint8_t*)nullptr, code2); in TEST()
32 code2[i] = 2; in TEST()
40 EXPECT_EQ(2, code2[i]); in TEST()
54 uint8_t *code2 = MemMgr->allocateCodeSection(0x100000, 0, 3, ""); in TEST() local
58 EXPECT_NE((uint8_t*)nullptr, code2); in TEST()
65 code2[i] = 2; in TEST()
73 EXPECT_EQ(2, code2[i]); in TEST()
/external/llvm/unittests/ExecutionEngine/MCJIT/
DMCJITMemoryManagerTest.cpp22 uint8_t *code2 = MemMgr->allocateCodeSection(256, 0, 3, ""); in TEST() local
26 EXPECT_NE((uint8_t*)nullptr, code2); in TEST()
33 code2[i] = 2; in TEST()
41 EXPECT_EQ(2, code2[i]); in TEST()
55 uint8_t *code2 = MemMgr->allocateCodeSection(0x100000, 0, 3, ""); in TEST() local
59 EXPECT_NE((uint8_t*)nullptr, code2); in TEST()
66 code2[i] = 2; in TEST()
74 EXPECT_EQ(2, code2[i]); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/
Dperl_groups.cc11 static const URange16 code2[] = { /* \s */ variable
25 { "\\s", +1, code2, 3 },
26 { "\\S", -1, code2, 3 },
/external/strace/
Dioctlsort.c99 unsigned int code2 = code((struct ioctlent *) b); in compare_code_name() local
102 return (code1 > code2) ? in compare_code_name()
103 1 : (code1 < code2) ? -1 : strcmp(name1, name2); in compare_code_name()
Dioctl.c40 const unsigned int code2 = ((struct_ioctlent *) b)->code; in compare() local
41 return (code1 > code2) ? 1 : (code1 < code2) ? -1 : 0; in compare()
/external/python/cpython2/Lib/
Dcodeop.py79 code = code1 = code2 = None
92 code2 = compiler(source + "\n\n", filename, symbol)
Dsre_parse.py481 code2 = _class_escape(source, this, nested + 1)
483 code2 = LITERAL, ord(this)
484 if code1[0] != LITERAL or code2[0] != LITERAL:
487 hi = code2[1]
/external/python/cpython3/Lib/
Dcodeop.py80 code = code1 = code2 = None
98 code2 = compiler(source + "\n\n", filename, symbol)
Dsre_parse.py581 code2 = _class_escape(source, that)
590 code2 = LITERAL, _ord(that)
591 if code1[0] != LITERAL or code2[0] != LITERAL:
595 hi = code2[1]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTestLocaleValidity.java326 …atasubtype expected, Datatype datatype, Set<Datasubtype> datasubtypes, String code, String code2) {
327 Datasubtype value = ValidIdentifiers.isValid(datatype, datasubtypes, code, code2);
328 assertEquals(datatype + ", " + datasubtypes + ", " + code + ", " + code2, expected, value);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTestLocaleValidity.java329 …atasubtype expected, Datatype datatype, Set<Datasubtype> datasubtypes, String code, String code2) {
330 Datasubtype value = ValidIdentifiers.isValid(datatype, datasubtypes, code, code2);
331 assertEquals(datatype + ", " + datasubtypes + ", " + code + ", " + code2, expected, value);
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/
DShapeImmutableTest.java59 Code2 code2 = (Code2) yaml.load("!!org.yaml.snakeyaml.immutable.Code2 555"); in testCode2() local
60 assertEquals(new Integer(555), code2.getCode()); in testCode2()
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dadb_wrapper_devicetest.py58 (res2, code2) = pshell.RunCommand('echo TEST2')
63 self.assertEqual(code2, 0)
/external/python/cpython2/Demo/parser/
Dtest_unparse.py86 code2 = unparse_buffer.getvalue()
87 ast2 = compile(code2, filename, "exec", ast.PyCF_ONLY_AST)
/external/freetype/src/pfr/
Dpfrobjs.c479 FT_UInt32 code1, code2, pair; in pfr_face_get_kerning() local
497 code2 = phy_font->chars[glyph2].char_code; in pfr_face_get_kerning()
498 pair = PFR_KERN_INDEX( code1, code2 ); in pfr_face_get_kerning()
/external/pdfium/fxbarcode/qrcode/
DBC_QRCoderEncoder.cpp102 int32_t code2 = GetAlphaNumericCode(content[i + 1]); in AppendAlphaNumericBytes() local
103 if (code2 == -1) in AppendAlphaNumericBytes()
106 bits->AppendBits(code1 * 45 + code2, 11); in AppendAlphaNumericBytes()
/external/javassist/src/test/
DJassist150.java39 String code2 = "{ int n1 = java.lang.Integer.valueOf(1); " in implTestClassTailCache() local
/external/libchrome/base/
Dlogging_unittest.cc255 DWORD code2 = 0; in TEST_F() local
271 GetCheckExceptionData(GetExceptionInformation(), &code2, &addr2)) { in TEST_F()
283 EXPECT_EQ(STATUS_BREAKPOINT, code2); in TEST_F()
/external/python/cpython2/Lib/test/
Dtest_parser.py653 code2 = parser.compilest(st)
654 self.assertEqual(eval(code2), -3)
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResTable_config.java2208 private boolean areIdentical(final byte[] code1, final byte[] code2) { in areIdentical() argument
2209 return code1[0] == code2[0] && code1[1] == code2[1]; in areIdentical()
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/
Dsg_err.c260 unsigned char code1, code2; member
998 if (additional[k].code1 == asc && additional[k].code2 == ascq) { in sg_print_asc_ascq()