/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNodeTest.cpp | 36 EXPECT_TRUE(matches("namespace x { class X {}; } using x::X;", in TEST() 42 EXPECT_TRUE(matches("typedef int X;", NamedX)); in TEST() 43 EXPECT_TRUE(matches("int X;", NamedX)); in TEST() 44 EXPECT_TRUE(matches("class foo { virtual void X(); };", NamedX)); in TEST() 45 EXPECT_TRUE(matches("void foo() try { } catch(int X) { }", NamedX)); in TEST() 46 EXPECT_TRUE(matches("void foo() { int X; }", NamedX)); in TEST() 47 EXPECT_TRUE(matches("namespace X { }", NamedX)); in TEST() 48 EXPECT_TRUE(matches("enum X { A, B, C };", NamedX)); in TEST() 55 EXPECT_TRUE(matches("typedef int Xa;", NamedX)); in TEST() 56 EXPECT_TRUE(matches("int Xb;", NamedX)); in TEST() [all …]
|
D | ASTMatchersNarrowingTest.cpp | 28 EXPECT_TRUE(matches(Program, in TEST() 31 EXPECT_TRUE(matches(Program, in TEST() 36 EXPECT_TRUE(matches(Program, in TEST() 42 EXPECT_TRUE(matches(Program, in TEST() 53 EXPECT_TRUE(matches("class Y { class X {}; };", HasClassX)); in TEST() 54 EXPECT_TRUE(matches("class X {};", HasClassX)); in TEST() 58 EXPECT_TRUE(matches("class Y { class X {}; };", YHasClassX)); in TEST() 77 EXPECT_TRUE(matches( in TEST() 89 EXPECT_TRUE(matches( in TEST() 103 EXPECT_TRUE(matches( in TEST() [all …]
|
D | ASTMatchersTraversalTest.cpp | 23 EXPECT_TRUE(matches("class A { void func(); };", in TEST() 30 EXPECT_TRUE(matches( in TEST() 40 EXPECT_TRUE(matches( in TEST() 55 EXPECT_TRUE(matches("namespace {" in TEST() 63 EXPECT_TRUE(matches("class D{};", decl(hasDeclContext(decl())))); in TEST() 67 EXPECT_TRUE(matches("void f() { int i = 3; }", in TEST() 69 EXPECT_TRUE(matches("void f() { int i = 3; }", in TEST() 72 EXPECT_TRUE(matches("void f() { int i = 3; }", in TEST() 74 EXPECT_TRUE(matches("void f() { int i = 3; }", in TEST() 88 EXPECT_TRUE(matches("void f() { int*** i; }", in TEST() [all …]
|
/external/catch2/projects/SelfTest/IntrospectiveTests/ |
D | CmdLine.tests.cpp | 33 CHECK( spec.matches( tcA ) == false ); 34 CHECK( spec.matches( tcB ) == false ); 40 CHECK( spec.matches(tcA ) == false ); 41 CHECK( spec.matches( tcB ) == false ); 47 CHECK( spec.matches( tcA ) == false ); 48 CHECK( spec.matches( tcB ) == false ); 54 CHECK( spec.matches( tcA ) == false ); 55 CHECK( spec.matches( tcB ) == true ); 61 CHECK( spec.matches( tcA ) == false ); 62 CHECK( spec.matches( tcB ) == true ); [all …]
|
/external/libxml2/result/pattern/ |
D | multiple | 1 Node /c/b[1]/a[1] matches pattern a 2 Node /c/b[1]/a[2] matches pattern a 3 Node /c/c/b/a[1] matches pattern a 4 Node /c/c/b/a[2] matches pattern a 5 Node /c/b[2]/a[1] matches pattern a 6 Node /c/b[2]/a[2] matches pattern a 7 Node /c/b[1] matches pattern b 8 Node /c/c/b matches pattern b 9 Node /c/b[2] matches pattern b 10 Node /c matches pattern c [all …]
|
D | conj | 1 Node /a matches pattern a|b 2 Node /a/b matches pattern a|b 3 Node /a/b/c[1]/b matches pattern a|b 4 Node /a/b/c[2]/b matches pattern a|b 5 Node /a/b/c[2]/c/b matches pattern a|b 6 Node /a/c/b matches pattern a|b 7 Node /a matches pattern a|c 8 Node /a/b/c[1] matches pattern a|c 9 Node /a/b/c[2] matches pattern a|c 10 Node /a/b/c[2]/c matches pattern a|c [all …]
|
D | namespaces | 1 Node /a matches pattern //a 2 Node /a/b:b/a matches pattern //a 3 Node /a/*[4]/a matches pattern //a 4 Node /a/a:a matches pattern //a:a 5 Node /a/b:b/a/a:a matches pattern //a:a 6 Node /a/*[4] matches pattern //a:a 7 Node /a/c:a matches pattern //a:a 8 Node /a/b matches pattern //b 9 Node /a/a:a/b:b matches pattern //b:b 10 Node /a/b:b matches pattern //b:b [all …]
|
D | simple | 1 Node /a matches pattern a 2 Node /a/b matches pattern b 3 Node /a/b matches pattern b 4 Node /a matches pattern /a 5 Node /a/b matches pattern a/b 6 Node /a/b/c matches pattern a/b/c 7 Node /a matches pattern //a 8 Node /a/b matches pattern //b 9 Node /a/b/c matches pattern //c 10 Node /a/b matches pattern a//b [all …]
|
/external/libtextclassifier/utils/sentencepiece/ |
D | sorted_strings_table_test.cc | 36 std::vector<TrieMatch> matches; in TEST() local 37 EXPECT_TRUE(table.FindAllPrefixMatches("hello there", &matches)); in TEST() 38 EXPECT_EQ(matches.size(), 2); in TEST() 39 EXPECT_EQ(matches[0].id, 0 /*hell*/); in TEST() 40 EXPECT_EQ(matches[0].match_length, 4 /*hell*/); in TEST() 41 EXPECT_EQ(matches[1].id, 1 /*hello*/); in TEST() 42 EXPECT_EQ(matches[1].match_length, 5 /*hello*/); in TEST() 46 std::vector<TrieMatch> matches; in TEST() local 47 EXPECT_TRUE(table.FindAllPrefixMatches("he", &matches)); in TEST() 48 EXPECT_THAT(matches, testing::IsEmpty()); in TEST() [all …]
|
D | double_array_trie_test.cc | 42 std::vector<TrieMatch> matches; in TEST() local 43 EXPECT_TRUE(trie.FindAllPrefixMatches("hello there", &matches)); in TEST() 44 EXPECT_EQ(matches.size(), 2); in TEST() 45 EXPECT_EQ(matches[0].id, 0 /*hell*/); in TEST() 46 EXPECT_EQ(matches[0].match_length, 4 /*hell*/); in TEST() 47 EXPECT_EQ(matches[1].id, 1 /*hello*/); in TEST() 48 EXPECT_EQ(matches[1].match_length, 5 /*hello*/); in TEST() 52 std::vector<TrieMatch> matches; in TEST() local 53 EXPECT_TRUE(trie.FindAllPrefixMatches("he", &matches)); in TEST() 54 EXPECT_THAT(matches, testing::IsEmpty()); in TEST() [all …]
|
/external/brotli/c/enc/ |
D | static_dict.c | 27 uint32_t* matches) { in AddMatch() argument 29 matches[len] = BROTLI_MIN(uint32_t, matches[len], match); in AddMatch() 79 size_t min_length, size_t max_length, uint32_t* matches) { in BrotliFindAllStaticDictionaryMatches() argument 100 AddMatch(id, l, l, matches); in BrotliFindAllStaticDictionaryMatches() 106 AddMatch(id + 12 * n, l - 1, l, matches); in BrotliFindAllStaticDictionaryMatches() 110 AddMatch(id + 49 * n, l + 3, l, matches); in BrotliFindAllStaticDictionaryMatches() 122 AddMatch(id + transform_id * n, len, l, matches); in BrotliFindAllStaticDictionaryMatches() 131 AddMatch(id + n, l + 1, l, matches); in BrotliFindAllStaticDictionaryMatches() 134 AddMatch(id + 28 * n, l + 3, l, matches); in BrotliFindAllStaticDictionaryMatches() 136 if (s[3] == ' ') AddMatch(id + 46 * n, l + 4, l, matches); in BrotliFindAllStaticDictionaryMatches() [all …]
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | UriPatternTypeTest.java | 27 assertTrue(pattern.matches("/foo/asdf")); in testMatches_servlet() 28 assertTrue(pattern.matches("/foo/asdf?val=1")); in testMatches_servlet() 29 assertFalse(pattern.matches("/path/file.bar")); in testMatches_servlet() 30 assertFalse(pattern.matches("/path/file.bar?val=1")); in testMatches_servlet() 31 assertFalse(pattern.matches("/asdf")); in testMatches_servlet() 32 assertFalse(pattern.matches("/asdf?val=1")); in testMatches_servlet() 35 assertFalse(pattern.matches("/foo/asdf")); in testMatches_servlet() 36 assertFalse(pattern.matches("/foo/asdf?val=1")); in testMatches_servlet() 37 assertTrue(pattern.matches("/path/file.bar")); in testMatches_servlet() 38 assertTrue(pattern.matches("/path/file.bar?val=1")); in testMatches_servlet() [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/ |
D | WildcardMatcherTest.java | 23 assertTrue(new WildcardMatcher("").matches("")); in testEmpty() 24 assertFalse(new WildcardMatcher("").matches("abc")); in testEmpty() 29 assertTrue(new WildcardMatcher("abc/def.txt").matches("abc/def.txt")); in testExact() 34 assertFalse(new WildcardMatcher("abcdef").matches("abcDef")); in testCaseSensitive() 35 assertFalse(new WildcardMatcher("ABCDEF").matches("AbCDEF")); in testCaseSensitive() 40 assertFalse(new WildcardMatcher("rst.xyz").matches("rstAxyz")); in testQuote() 41 assertTrue(new WildcardMatcher("(x)+").matches("(x)+")); in testQuote() 46 assertTrue(new WildcardMatcher("*").matches("")); in testWildcards() 47 assertTrue(new WildcardMatcher("*").matches("java/lang/Object")); in testWildcards() 48 assertTrue(new WildcardMatcher("*Test").matches("jacoco/MatcherTest")); in testWildcards() [all …]
|
/external/mockito/src/test/java/org/mockito/internal/matchers/ |
D | InstanceOfTest.java | 27 assertThat(new InstanceOf(Object.class).matches(new Object())).isTrue(); in should_check_instance_type() 28 assertThat(new InstanceOf(Object.class).matches(new ArrayList())).isTrue(); in should_check_instance_type() 29 assertThat(new InstanceOf(List.class).matches(new ArrayList())).isTrue(); in should_check_instance_type() 30 assertThat(new InstanceOf(List.class).matches(new Object())).isFalse(); in should_check_instance_type() 35 assertThat(new InstanceOf(int.class).matches(1000)).isTrue(); in should_check_for_primitive_wrapper_types() 36 assertThat(new InstanceOf(Integer.class).matches(1000)).isTrue(); in should_check_for_primitive_wrapper_types() 37 assertThat(new InstanceOf(int.class).matches(new Integer(1000))).isTrue(); in should_check_for_primitive_wrapper_types() 38 assertThat(new InstanceOf(Integer.class).matches(new Integer(1000))).isTrue(); in should_check_for_primitive_wrapper_types() 40 assertThat(new InstanceOf(double.class).matches(1000.1)).isTrue(); in should_check_for_primitive_wrapper_types() 41 assertThat(new InstanceOf(Double.class).matches(1000.1)).isTrue(); in should_check_for_primitive_wrapper_types() [all …]
|
D | StringMatchersTest.java | 18 assertTrue(new StartsWith("mockito").matches("mockito is here")); in startsWithString() 23 assertFalse(new StartsWith("junit").matches("mockito is here")); in doesNotStartWithString() 28 assertFalse(new StartsWith("java").matches(null)); in nullStartsWith() 33 assertTrue(new EndsWith("mockito").matches("here is mockito")); in endsWithString() 38 assertFalse(new EndsWith("junit").matches("here is mockito")); in doesNotEndWithString() 43 assertFalse(new EndsWith("java").matches(null)); in nullEndsWith() 48 assertTrue(new Contains("mockito").matches("****mockito****")); in containsString() 53 assertFalse(new Contains("junit").matches("****mockito****")); in stringDoesNotContain() 58 assertFalse(new Contains("mockito").matches(null)); in nullContainsNothing() 63 assertTrue(new Find("eleph.nt").matches("the elephant in the room")); in matchesRegex() [all …]
|
/external/clang/unittests/ASTMatchers/Dynamic/ |
D | RegistryTest.cpp | 139 EXPECT_TRUE(matches(ClassSnippet, IsArrowValue)); in TEST_F() 140 EXPECT_TRUE(matches(BoolSnippet, BoolValue)); in TEST_F() 141 EXPECT_FALSE(matches(ClassSnippet, BoolValue)); in TEST_F() 142 EXPECT_FALSE(matches(BoolSnippet, IsArrowValue)); in TEST_F() 149 EXPECT_TRUE(matches("class X {};", Value)); in TEST_F() 150 EXPECT_FALSE(matches("int x;", Value)); in TEST_F() 154 EXPECT_TRUE(matches("void foo(int,int);", Value)); in TEST_F() 155 EXPECT_FALSE(matches("void foo(int);", Value)); in TEST_F() 168 EXPECT_FALSE(matches(code, HasInitializerSimple)); in TEST_F() 169 EXPECT_FALSE(matches(code, HasInitializerComplex)); in TEST_F() [all …]
|
/external/xz-java/src/org/tukaani/xz/lzma/ |
D | LZMAEncoderFast.java | 22 private Matches matches = null; field in LZMAEncoderFast 52 matches = getMatches(); in getNextSymbol() 89 if (matches.count > 0) { in getNextSymbol() 90 mainLen = matches.len[matches.count - 1]; in getNextSymbol() 91 mainDist = matches.dist[matches.count - 1]; in getNextSymbol() 99 while (matches.count > 1 in getNextSymbol() 100 && mainLen == matches.len[matches.count - 2] + 1) { in getNextSymbol() 101 if (!changePair(matches.dist[matches.count - 2], mainDist)) in getNextSymbol() 104 --matches.count; in getNextSymbol() 105 mainLen = matches.len[matches.count - 1]; in getNextSymbol() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/FuzzMutate/ |
D | OperationsTest.cpp | 102 EXPECT_TRUE(OnlyI32.matches({}, i32)); in TEST() 103 EXPECT_FALSE(OnlyI32.matches({}, i64)); in TEST() 104 EXPECT_FALSE(OnlyI32.matches({}, p0i32)); in TEST() 105 EXPECT_FALSE(OnlyI32.matches({}, a)); in TEST() 111 EXPECT_TRUE(AnyType.matches({}, i1)); in TEST() 112 EXPECT_TRUE(AnyType.matches({}, f64)); in TEST() 113 EXPECT_TRUE(AnyType.matches({}, s)); in TEST() 114 EXPECT_TRUE(AnyType.matches({}, v8i8)); in TEST() 115 EXPECT_TRUE(AnyType.matches({}, p0i32)); in TEST() 122 EXPECT_TRUE(AnyInt.matches({}, i1)); in TEST() [all …]
|
/external/llvm/lib/Option/ |
D | ArgList.cpp | 30 if (O.matches(Id0) || in SkipToNextArg() 31 (Id1.isValid() && O.matches(Id1)) || in SkipToNextArg() 32 (Id2.isValid() && O.matches(Id2))) in SkipToNextArg() 43 [=](Arg *A) { return A->getOption().matches(Id); }), in eraseArg() 50 if ((*it)->getOption().matches(Id)) in getLastArgNoClaim() 58 if ((*it)->getOption().matches(Id0) || in getLastArgNoClaim() 59 (*it)->getOption().matches(Id1)) in getLastArgNoClaim() 68 if ((*it)->getOption().matches(Id0) || (*it)->getOption().matches(Id1) || in getLastArgNoClaim() 69 (*it)->getOption().matches(Id2)) in getLastArgNoClaim() 78 if ((*it)->getOption().matches(Id0) || (*it)->getOption().matches(Id1) || in getLastArgNoClaim() [all …]
|
/external/iproute2/ip/ |
D | ip.c | 114 if (matches(argv0, c->cmd) == 0) in do_cmd() 194 if (matches(opt, "-loops") == 0) { in main() 200 } else if (matches(opt, "-family") == 0) { in main() 225 } else if (matches(opt, "-human") == 0 || in main() 226 matches(opt, "-human-readable") == 0) { in main() 228 } else if (matches(opt, "-iec") == 0) { in main() 230 } else if (matches(opt, "-stats") == 0 || in main() 231 matches(opt, "-statistics") == 0) { in main() 233 } else if (matches(opt, "-details") == 0) { in main() 235 } else if (matches(opt, "-resolve") == 0) { in main() [all …]
|
D | iplink_vxlan.c | 90 if (!matches(*argv, "id") || in vxlan_parse_opt() 91 !matches(*argv, "vni")) { in vxlan_parse_opt() 100 } else if (!matches(*argv, "group")) { in vxlan_parse_opt() 114 } else if (!matches(*argv, "remote")) { in vxlan_parse_opt() 128 } else if (!matches(*argv, "local")) { in vxlan_parse_opt() 149 } else if (!matches(*argv, "dev")) { in vxlan_parse_opt() 161 } else if (!matches(*argv, "ttl") || in vxlan_parse_opt() 162 !matches(*argv, "hoplimit")) { in vxlan_parse_opt() 176 } else if (!matches(*argv, "tos") || in vxlan_parse_opt() 177 !matches(*argv, "dsfield")) { in vxlan_parse_opt() [all …]
|
/external/xz-java/src/org/tukaani/xz/lz/ |
D | HC4.java | 18 private final Matches matches; field in HC4 52 matches = new Matches(niceLen - 1); in HC4() 91 matches.count = 0; in getMatches() 98 return matches; in getMatches() 121 matches.len[0] = 2; in getMatches() 122 matches.dist[0] = delta2 - 1; in getMatches() 123 matches.count = 1; in getMatches() 133 matches.dist[matches.count++] = delta3 - 1; in getMatches() 138 if (matches.count > 0) { in getMatches() 143 matches.len[matches.count - 1] = lenBest; in getMatches() [all …]
|
/external/iproute2/tc/ |
D | tc.c | 198 if (matches(*argv, "qdisc") == 0) in do_cmd() 200 if (matches(*argv, "class") == 0) in do_cmd() 202 if (matches(*argv, "filter") == 0) in do_cmd() 204 if (matches(*argv, "actions") == 0) in do_cmd() 206 if (matches(*argv, "monitor") == 0) in do_cmd() 208 if (matches(*argv, "exec") == 0) in do_cmd() 210 if (matches(*argv, "help") == 0) { in do_cmd() 274 if (matches(argv[1], "-stats") == 0 || in main() 275 matches(argv[1], "-statistics") == 0) { in main() 277 } else if (matches(argv[1], "-details") == 0) { in main() [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
D | rc_test_helpers.c | 76 static int match_length(regmatch_t * matches, int index) in match_length() argument 78 return matches[index].rm_eo - matches[index].rm_so; in match_length() 84 regmatch_t * matches, in regex_helper() argument 99 err_code = regexec(®ex, search_str, num_matches, matches, 0); in regex_helper() 103 matches[i].rm_so, matches[i].rm_eo); in regex_helper() 140 regmatch_t matches[REGEX_SRC_MATCHES]; in init_rc_normal_src() local 146 if (!regex_helper(regex_str, src_str, matches, REGEX_SRC_MATCHES)) { in init_rc_normal_src() 152 tokens.Negate.String = src_str + matches[1].rm_so; in init_rc_normal_src() 153 tokens.Negate.Length = match_length(matches, 1); in init_rc_normal_src() 154 tokens.Abs.String = src_str + matches[2].rm_so; in init_rc_normal_src() [all …]
|
/external/guice/core/test/com/google/inject/matcher/ |
D | MatcherTest.java | 45 assertTrue(any().matches(null)); in testAny() 52 assertFalse(not(any()).matches(null)); in testNot() 59 assertTrue(any().and(any()).matches(null)); in testAnd() 60 assertFalse(any().and(not(any())).matches(null)); in testAnd() 67 assertTrue(any().or(not(any())).matches(null)); in testOr() 68 assertFalse(not(any()).or(not(any())).matches(null)); in testOr() 75 assertTrue(annotatedWith(Foo.class).matches(Bar.class)); in testAnnotatedWith() 76 assertFalse(annotatedWith(Foo.class).matches(MatcherTest.class.getMethods()[0])); in testAnnotatedWith() 89 assertTrue(subclassesOf(Runnable.class).matches(Runnable.class)); in testSubclassesOf() 90 assertTrue(subclassesOf(Runnable.class).matches(MyRunnable.class)); in testSubclassesOf() [all …]
|