/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | AnalyseNewJavaParserTest.java | 67 private void parse(String fileName) throws IOException, ParseException { in parse() method in AnalyseNewJavaParserTest 120 parse("com/github/javaparser/utils/Utils"); in parseUtilsUtils() 125 parse("com/github/javaparser/CommentsInserter"); in parseCommentsInserter() 130 parse("com/github/javaparser/utils/PositionUtils"); in parsePositionUtils() 135 parse("com/github/javaparser/ast/Modifier"); in parseModifier() 140 parse("com/github/javaparser/ast/nodeTypes/NodeWithMembers"); in parseNodeWithMembers() 145 parse("com/github/javaparser/ast/stmt/AssertStmt"); in parseAstStmts() 146 parse("com/github/javaparser/ast/stmt/BlockStmt"); in parseAstStmts() 147 parse("com/github/javaparser/ast/stmt/BreakStmt"); in parseAstStmts() 148 parse("com/github/javaparser/ast/stmt/CatchClause"); in parseAstStmts() [all …]
|
D | AnalyseJavaParserTest.java | 62 private void parse(String fileName) throws IOException, ParseException { in parse() method in AnalyseJavaParserTest 104 parse("com/github/javaparser/PositionUtils"); in parsePositionUtils() 109 parse("com/github/javaparser/JavaParser"); in parseJavaParser() 114 parse("com/github/javaparser/ast/stmt/Statement"); in parseStatement() 119 parse("com/github/javaparser/ast/stmt/CatchClause"); in parseCatchClause() 124 parse("com/github/javaparser/ast/stmt/LabeledStmt"); in parseStatements() 125 parse("com/github/javaparser/ast/stmt/BreakStmt"); in parseStatements() 126 parse("com/github/javaparser/ast/stmt/ReturnStmt"); in parseStatements() 127 parse("com/github/javaparser/ast/stmt/DoStmt"); in parseStatements() 128 parse("com/github/javaparser/ast/stmt/AssertStmt"); in parseStatements() [all …]
|
D | AnalyseJavaSymbolSolver060Test.java | 89 private void parse(String projectName, String fileName) throws IOException, ParseException { in parse() method in AnalyseJavaSymbolSolver060Test 141 … parse("java-symbol-solver-core", "com/github/javaparser/symbolsolver/SourceFileInfoExtractor"); in parseCoreSourceFileInfoExtractor() 146 … parse("java-symbol-solver-core", "com/github/javaparser/symbolsolver/core/resolution/Context"); in parseCoreCoreResolution() 147 …parse("java-symbol-solver-core", "com/github/javaparser/symbolsolver/core/resolution/ContextHelper… in parseCoreCoreResolution() 152 …parse("java-symbol-solver-core", "com/github/javaparser/symbolsolver/declarations/common/MethodDec… in parseCoreDeclarationsCommon() 157 parse("java-symbol-solver-core", "com/github/javaparser/symbolsolver/javaparser/Navigator"); in parseCoreJavaparserNavigator() 162 …parse("java-symbol-solver-core", "com/github/javaparser/symbolsolver/javaparsermodel/DefaultVisito… in parseCoreJavaparsermodel() 163 …parse("java-symbol-solver-core", "com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFac… in parseCoreJavaparsermodel() 164 …parse("java-symbol-solver-core", "com/github/javaparser/symbolsolver/javaparsermodel/JavaParserFac… in parseCoreJavaparsermodel() 165 …parse("java-symbol-solver-core", "com/github/javaparser/symbolsolver/javaparsermodel/LambdaArgumen… in parseCoreJavaparsermodel() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | HttpUrlTest.java | 37 HttpUrl expected = HttpUrl.parse("http://host/"); in parseTrimsAsciiWhitespace() 38 assertEquals(expected, HttpUrl.parse("http://host/\f\n\t \r")); // Leading. in parseTrimsAsciiWhitespace() 39 assertEquals(expected, HttpUrl.parse("\r\n\f \thttp://host/")); // Trailing. in parseTrimsAsciiWhitespace() 40 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both. in parseTrimsAsciiWhitespace() 41 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both. in parseTrimsAsciiWhitespace() 42 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" ")); in parseTrimsAsciiWhitespace() 43 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" . ")); in parseTrimsAsciiWhitespace() 48 assertNull(HttpUrl.parse("http://" + host + "/")); in parseHostAsciiNonPrintable() 53 assertEquals("/%0B", HttpUrl.parse("http://h/\u000b").encodedPath()); // line tabulation in parseDoesNotTrimOtherWhitespaceCharacters() 54 assertEquals("/%1C", HttpUrl.parse("http://h/\u001c").encodedPath()); // information separator 4 in parseDoesNotTrimOtherWhitespaceCharacters() [all …]
|
/external/antlr/runtime/Ruby/test/functional/ast-output/ |
D | rewrites.rb | 8 def parse( grammar, rule, input, expect_errors = false ) method in TestASTViaRewriteRules 60 result = parse( <<-'END', :a, 'abc 34' ) 73 result = parse( <<-'END', :a, 'abc' ) 87 result = parse( <<-'END', :a, 'abc' ) 101 result = parse( <<-'END', :a, 'abc' ) 115 result = parse( <<-'END', :a, 'abc' ) 128 result = parse( <<-'END', :a, 'c' ) 142 result = parse( <<-'END', :a, 'ick' ) 156 result = parse( <<-'END', :a, 'abc' ) 171 result = parse( <<-'END', :a, 'abc 34' ) [all …]
|
D | auto-ast.rb | 8 def parse( grammar, rule, input, expect_errors = false ) method in TestAutoAST 61 result = parse( <<-'END', :a, 'abc 34' ) 73 result = parse( <<-'END', :a, 'abc 34' ) 85 result = parse( <<-'END', :a, 'abc 34' ) 97 result = parse( <<-'END', :a, '34 abc' ) 109 result = parse( <<-'END', :a, 'abc 34 dag 4532' ) 122 result = parse( <<-'END', :a, 'a 1 b' ) 134 result = parse( <<-'END', :a, 'void foo;' ) 146 result = parse( <<-'END', :a, 'void foo;' ) 158 result = parse( <<-'END', :a, 'void foo;' ) [all …]
|
/external/python/dateutil/dateutil/test/ |
D | test_parser.py | 11 from dateutil.parser import parse, parserinfo 55 res = parse(dstr) 72 parse('') 76 parse(None) 80 parse(13) 95 self.assertEqual(parse(dstr), datetime(2014, 1, 19)) 100 self.assertEqual(parse(dstr), datetime(2014, 1, 19)) 103 self.assertEqual(parse(self.str_str), 104 parse(self.uni_str)) 107 self.assertEqual(parse(b'2014 January 19'), datetime(2014, 1, 19)) [all …]
|
/external/antlr/runtime/Python3/tests/ |
D | t042ast.py | 25 def parse(self, text, method, rArgs=(), **kwargs): member in t042ast 40 r = self.parse("1 + 2", 'r1') 48 r = self.parse("assert 2+3;", 'r2') 56 r = self.parse("assert 2+3 : 5;", 'r2') 64 r = self.parse("if 1 fooze", 'r3') 72 r = self.parse("if 1 fooze else fooze", 'r3') 80 r = self.parse("while 2 fooze", 'r4') 88 r = self.parse("return;", 'r5') 96 r = self.parse("return 2+3;", 'r5') 104 r = self.parse("3", 'r6') [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/ |
D | MediaTypeTest.java | 103 assertEquals("text", MediaType.parse("text/plain").type()); in testGetType() 105 MediaType.parse("application/atom+xml; charset=utf-8").type()); in testGetType() 109 assertEquals("plain", MediaType.parse("text/plain").subtype()); in testGetSubtype() 111 MediaType.parse("application/atom+xml; charset=utf-8").subtype()); in testGetSubtype() 118 assertEquals(ImmutableListMultimap.of(), MediaType.parse("text/plain").parameters()); in testGetParameters() 120 MediaType.parse("application/atom+xml; charset=utf-8").parameters()); in testGetParameters() 122 MediaType.parse("application/atom+xml; a=1; a=2; b=3").parameters()); in testGetParameters() 126 assertSame(MediaType.parse("image/gif"), in testWithoutParameters() 127 MediaType.parse("image/gif").withoutParameters()); in testWithoutParameters() 128 assertEquals(MediaType.parse("image/gif"), in testWithoutParameters() [all …]
|
/external/antlr/runtime/Python/tests/ |
D | t042ast.py | 25 def parse(self, text, method, rArgs=[], **kwargs): member in t042ast 40 r = self.parse("1 + 2", 'r1') 48 r = self.parse("assert 2+3;", 'r2') 56 r = self.parse("assert 2+3 : 5;", 'r2') 64 r = self.parse("if 1 fooze", 'r3') 72 r = self.parse("if 1 fooze else fooze", 'r3') 80 r = self.parse("while 2 fooze", 'r4') 88 r = self.parse("return;", 'r5') 96 r = self.parse("return 2+3;", 'r5') 104 r = self.parse("3", 'r6') [all …]
|
/external/guava/guava-tests/test/com/google/common/net/ |
D | MediaTypeTest.java | 65 assertSame(constant, MediaType.parse(constant.toString())); in testParse_useConstants() 163 assertEquals("text", MediaType.parse("text/plain").type()); 165 MediaType.parse("application/atom+xml; charset=utf-8").type()); 169 assertEquals("plain", MediaType.parse("text/plain").subtype()); 171 MediaType.parse("application/atom+xml; charset=utf-8").subtype()); 178 assertEquals(ImmutableListMultimap.of(), MediaType.parse("text/plain").parameters()); 180 MediaType.parse("application/atom+xml; charset=utf-8").parameters()); 182 MediaType.parse("application/atom+xml; a=1; a=2; b=3").parameters()); 186 assertSame(MediaType.parse("image/gif"), 187 MediaType.parse("image/gif").withoutParameters()); [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderSpecTest.java | 19 import static com.google.common.cache.CacheBuilderSpec.parse; 38 CacheBuilderSpec spec = parse(""); in testParse_empty() 51 CacheBuilderSpec spec = parse("initialCapacity=10"); in testParse_initialCapacity() 66 parse("initialCapacity=10, initialCapacity=20"); in testParse_initialCapacityRepeated() 74 CacheBuilderSpec spec = parse("maximumSize=9000"); in testParse_maximumSize() 88 parse("maximumSize=10, maximumSize=20"); in testParse_maximumSizeRepeated() 96 CacheBuilderSpec spec = parse("maximumWeight=9000"); in testParse_maximumWeight() 110 parse("maximumWeight=10, maximumWeight=20"); in testParse_maximumWeightRepeated() 119 parse("maximumSize=10, maximumWeight=20"); in testParse_maximumSizeAndMaximumWeight() 127 CacheBuilderSpec spec = parse("concurrencyLevel=32"); in testParse_concurrencyLevel() [all …]
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
D | LevelTest.java | 112 assertSame(Level.SEVERE, Level.parse("SEVERE")); in testParse_PredefinedConstStrings() 113 assertSame(Level.WARNING, Level.parse("WARNING")); in testParse_PredefinedConstStrings() 114 assertSame(Level.INFO, Level.parse("INFO")); in testParse_PredefinedConstStrings() 115 assertSame(Level.CONFIG, Level.parse("CONFIG")); in testParse_PredefinedConstStrings() 116 assertSame(Level.FINE, Level.parse("FINE")); in testParse_PredefinedConstStrings() 117 assertSame(Level.FINER, Level.parse("FINER")); in testParse_PredefinedConstStrings() 118 assertSame(Level.FINEST, Level.parse("FINEST")); in testParse_PredefinedConstStrings() 119 assertSame(Level.OFF, Level.parse("OFF")); in testParse_PredefinedConstStrings() 120 assertSame(Level.ALL, Level.parse("ALL")); in testParse_PredefinedConstStrings() 128 Level.parse("SEVERe"); in testParse_IllegalConstString() [all …]
|
/external/jsmn/test/ |
D | tests.c | 10 check(parse("{}", 1, 1, in test_empty() 12 check(parse("[]", 1, 1, in test_empty() 14 check(parse("[{},{}]", 3, 3, in test_empty() 22 check(parse("{\"a\":0}", 3, 3, in test_object() 26 check(parse("{\"a\":[]}", 3, 3, in test_object() 30 check(parse("{\"a\":{},\"b\":{}}", 5, 5, in test_object() 36 check(parse("{\n \"Day\": 26,\n \"Month\": 9,\n \"Year\": 12\n }", 7, 7, in test_object() 44 check(parse("{\"a\": 0, \"b\": \"c\"}", 5, 5, in test_object() 52 check(parse("{\"a\"\n0}", JSMN_ERROR_INVAL, 3)); in test_object() 53 check(parse("{\"a\", 0}", JSMN_ERROR_INVAL, 3)); in test_object() [all …]
|
/external/robolectric-shadows/resources/src/test/java/org/robolectric/res/android/ |
D | ConfigDescriptionTest.java | 58 ConfigDescription.parse("mcc310", config); in parse_mcc() 65 ConfigDescription.parse("MCC310", config); in parse_mcc_upperCase() 72 ConfigDescription.parse("mcc310-mnc004", config); in parse_mcc_mnc_upperCase() 80 ConfigDescription.parse("ldltr", config); in parse_layoutDirection_leftToRight() 87 ConfigDescription.parse("ldrtl", config); in parse_layoutDirection_rightToLeft() 94 ConfigDescription.parse("any", config); in parse_layoutDirection_any() 101 ConfigDescription.parse("small", config); in parse_screenSize_small() 108 ConfigDescription.parse("normal", config); in parse_screenSize_normal() 115 ConfigDescription.parse("large", config); in parse_screenSize_large() 122 ConfigDescription.parse("xlarge", config); in parse_screenSize_xlarge() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_urlparse.py | 4 import urllib.parse 86 result = urllib.parse.urlparse(url) 92 result2 = urllib.parse.urlunparse(result) 98 result3 = urllib.parse.urlparse(result.geturl()) 113 result = urllib.parse.urlsplit(url) 118 result2 = urllib.parse.urlunsplit(result) 123 result3 = urllib.parse.urlsplit(result.geturl()) 138 result = urllib.parse.parse_qsl(orig, keep_blank_values=True) 141 result = urllib.parse.parse_qsl(orig, keep_blank_values=False) 147 result = urllib.parse.parse_qs(orig, keep_blank_values=True) [all …]
|
D | test_urllib.py | 3 import urllib.parse 769 result = urllib.parse.quote(do_not_quote) 772 result = urllib.parse.quote_plus(do_not_quote) 778 self.assertEqual(urllib.parse.quote.__defaults__[0], '/') 783 result = urllib.parse.quote(quote_by_default, safe=quote_by_default) 786 result = urllib.parse.quote_plus(quote_by_default, 792 result = urllib.parse.quote(quote_by_default, safe=b"<>") 797 result = urllib.parse.quote("a\xfcb", encoding="latin-1", safe="\xfc") 798 expect = urllib.parse.quote("a\xfcb", encoding="latin-1", safe="") 803 result = urllib.parse.quote("a\xfcb", encoding="latin-1", safe=b"\xfc") [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
D | HttpDateTest.java | 47 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT").getTime()); in parseStandardFormats() 48 assertEquals(1402057830000L, HttpDate.parse("Fri, 06 Jun 2014 12:30:30 GMT").getTime()); in parseStandardFormats() 51 assertEquals(0L, HttpDate.parse("Thursday, 01-Jan-70 00:00:00 GMT").getTime()); in parseStandardFormats() 52 assertEquals(1402057830000L, HttpDate.parse("Friday, 06-Jun-14 12:30:30 GMT").getTime()); in parseStandardFormats() 55 assertEquals(0L, HttpDate.parse("Thu Jan 1 00:00:00 1970").getTime()); in parseStandardFormats() 56 assertEquals(1402057830000L, HttpDate.parse("Fri Jun 6 12:30:30 2014").getTime()); in parseStandardFormats() 66 assertEquals(3600000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT-01:00").getTime()); in parseNonStandardStrings() 67 assertEquals(28800000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 PST").getTime()); in parseNonStandardStrings() 69 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT JUNK").getTime()); in parseNonStandardStrings() 71 assertNull(HttpDate.parse("Thu, 01 Jan 1970 00:00:00")); in parseNonStandardStrings() [all …]
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/ |
D | VisitorListTest.java | 44 list.add(JavaParser.parse("class X{}")); in visitorAddAll() 45 list.add(JavaParser.parse("class X{}")); in visitorAddAll() 56 list.add(JavaParser.parse("class X{}")); in visitorAddAllAtIndex() 57 list.add(JavaParser.parse("class Y{}")); in visitorAddAllAtIndex() 60 vList.add(JavaParser.parse("class A{}")); in visitorAddAllAtIndex() 61 vList.add(JavaParser.parse("class B{}")); in visitorAddAllAtIndex() 63 vList.add(JavaParser.parse("class C{}")); in visitorAddAllAtIndex() 70 CompilationUnit x1 = JavaParser.parse("class X{}"); in visitorListContains() 80 list.add(JavaParser.parse("class X{}")); in visitorListContainsAll() 81 list.add(JavaParser.parse("class X{}")); in visitorListContainsAll() [all …]
|
/external/fonttools/Tests/feaLib/ |
D | parser_test.py | 75 doc = self.parse( 90 doc = self.parse("""\ 99 doc = self.parse( 112 doc = self.parse( 125 doc = self.parse( 140 doc = self.parse( 148 doc = self.parse( 163 FeatureLibError, 'Unknown anchor "UnknownName"', self.parse, 169 [foo] = self.parse("anchorDef 123 456 foo;").statements 177 [foo] = self.parse("anchorDef 123 456 contourpoint 5 foo;").statements [all …]
|
/external/fonttools/Tests/voltLib/ |
D | parser_test.py | 29 [def_glyph] = self.parse( 37 [def_glyph] = self.parse( 45 [def_glyph] = self.parse( 54 [def_glyph] = self.parse( 63 [def_glyph] = self.parse( 72 [def_glyph] = self.parse( 80 [def_glyph] = self.parse( 88 [def_glyph] = self.parse( 96 [def_glyph] = self.parse( 104 [def_glyph] = self.parse( [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/lit/tests/unit/ |
D | ShUtil.py | 42 def parse(self, str): member in TestShParse 43 return ShParser(str).parse() 46 self.assertEqual(self.parse('echo hello'), 48 self.assertEqual(self.parse('echo ""'), 50 self.assertEqual(self.parse("""echo -DFOO='a'"""), 52 self.assertEqual(self.parse('echo -DFOO="a"'), 56 self.assertEqual(self.parse('echo hello > c'), 59 self.assertEqual(self.parse('echo hello > c >> d'), 62 self.assertEqual(self.parse('a 2>&1'), 66 self.assertEqual(self.parse('a | b'), [all …]
|
/external/virglrenderer/src/gallium/auxiliary/tgsi/ |
D | tgsi_iterate.c | 36 struct tgsi_parse_context parse; in tgsi_iterate_shader() local 38 if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK) in tgsi_iterate_shader() 41 ctx->processor = parse.FullHeader.Processor; in tgsi_iterate_shader() 47 while (!tgsi_parse_end_of_tokens( &parse )) { in tgsi_iterate_shader() 48 tgsi_parse_token( &parse ); in tgsi_iterate_shader() 50 switch (parse.FullToken.Token.Type) { in tgsi_iterate_shader() 53 if (!ctx->iterate_instruction( ctx, &parse.FullToken.FullInstruction )) in tgsi_iterate_shader() 59 if (!ctx->iterate_declaration( ctx, &parse.FullToken.FullDeclaration )) in tgsi_iterate_shader() 65 if (!ctx->iterate_immediate( ctx, &parse.FullToken.FullImmediate )) in tgsi_iterate_shader() 71 if (!ctx->iterate_property( ctx, &parse.FullToken.FullProperty )) in tgsi_iterate_shader() [all …]
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_iterate.c | 36 struct tgsi_parse_context parse; in tgsi_iterate_shader() local 38 if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK) in tgsi_iterate_shader() 41 ctx->processor = parse.FullHeader.Processor; in tgsi_iterate_shader() 47 while (!tgsi_parse_end_of_tokens( &parse )) { in tgsi_iterate_shader() 48 tgsi_parse_token( &parse ); in tgsi_iterate_shader() 50 switch (parse.FullToken.Token.Type) { in tgsi_iterate_shader() 53 if (!ctx->iterate_instruction( ctx, &parse.FullToken.FullInstruction )) in tgsi_iterate_shader() 59 if (!ctx->iterate_declaration( ctx, &parse.FullToken.FullDeclaration )) in tgsi_iterate_shader() 65 if (!ctx->iterate_immediate( ctx, &parse.FullToken.FullImmediate )) in tgsi_iterate_shader() 71 if (!ctx->iterate_property( ctx, &parse.FullToken.FullProperty )) in tgsi_iterate_shader() [all …]
|
/external/python/dateutil/docs/ |
D | examples.rst | 242 ... dtstart=parse("19970902T090000"))) 260 ... dtstart=parse("19970902T090000"), 261 ... until=parse("19971224T000000"))) 276 ... dtstart=parse("19970902T090000"))) 289 ... dtstart=parse("19970902T090000"))) 302 ... dtstart=parse("19980101T090000"), 303 ... until=parse("20000131T090000"))) 326 ... dtstart=parse("19980101T090000"), 327 ... until=parse("20000131T090000"))) 338 ... dtstart=parse("19970902T090000"))) [all …]
|