HomeSort by relevance Sort by last modified time
    Searched refs:matches (Results 1 - 25 of 1488) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/proguard/src/proguard/util/
ConstantMatcher.java 24 * This StringMatcher matches any string or no string at all.
30 private boolean matches; field in class:ConstantMatcher
36 public ConstantMatcher(boolean matches)
38 this.matches = matches;
44 public boolean matches(String string) method in class:ConstantMatcher
46 return matches;
StringMatcher.java 33 * Checks whether the given string matches.
35 * @return a boolean indicating whether the string matches the criterion.
37 public boolean matches(String string); method in interface:StringMatcher
NotMatcher.java 42 public boolean matches(String string) method in class:NotMatcher
44 return !matcher.matches(string);
SettableMatcher.java 42 public boolean matches(String string) method in class:SettableMatcher
44 return matcher.matches(string);
EmptyStringMatcher.java 32 public boolean matches(String string) method in class:EmptyStringMatcher
AndMatcher.java 24 * This StringMatcher tests whether strings matches both given StringMatcher
44 public boolean matches(String string) method in class:AndMatcher
46 return matcher1.matches(string) &&
47 matcher2.matches(string);
OrMatcher.java 24 * This StringMatcher tests whether strings matches either of the given
44 public boolean matches(String string) method in class:OrMatcher
46 return matcher1.matches(string) ||
47 matcher2.matches(string);
  /external/guice/extensions/servlet/test/com/google/inject/servlet/
UriPatternTypeTest.java 27 assertTrue(pattern.matches("/foo/asdf"));
28 assertTrue(pattern.matches("/foo/asdf?val=1"));
29 assertFalse(pattern.matches("/path/file.bar"));
30 assertFalse(pattern.matches("/path/file.bar?val=1"));
31 assertFalse(pattern.matches("/asdf"));
32 assertFalse(pattern.matches("/asdf?val=1"));
35 assertFalse(pattern.matches("/foo/asdf"));
36 assertFalse(pattern.matches("/foo/asdf?val=1"));
37 assertTrue(pattern.matches("/path/file.bar"));
38 assertTrue(pattern.matches("/path/file.bar?val=1"))
    [all...]
  /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
WildcardMatcherTest.java 23 assertTrue(new WildcardMatcher("").matches(""));
24 assertFalse(new WildcardMatcher("").matches("abc"));
29 assertTrue(new WildcardMatcher("abc/def.txt").matches("abc/def.txt"));
34 assertFalse(new WildcardMatcher("abcdef").matches("abcDef"));
35 assertFalse(new WildcardMatcher("ABCDEF").matches("AbCDEF"));
40 assertFalse(new WildcardMatcher("rst.xyz").matches("rstAxyz"));
41 assertTrue(new WildcardMatcher("(x)+").matches("(x)+"));
46 assertTrue(new WildcardMatcher("*").matches(""));
47 assertTrue(new WildcardMatcher("*").matches("java/lang/Object"));
48 assertTrue(new WildcardMatcher("*Test").matches("jacoco/MatcherTest"))
    [all...]
  /external/libtextclassifier/utils/sentencepiece/
sorted_strings_table_test.cc 36 std::vector<TrieMatch> matches; local
37 EXPECT_TRUE(table.FindAllPrefixMatches("hello there", &matches));
38 EXPECT_EQ(matches.size(), 2);
39 EXPECT_EQ(matches[0].id, 0 /*hell*/);
40 EXPECT_EQ(matches[0].match_length, 4 /*hell*/);
41 EXPECT_EQ(matches[1].id, 1 /*hello*/);
42 EXPECT_EQ(matches[1].match_length, 5 /*hello*/);
46 std::vector<TrieMatch> matches; local
47 EXPECT_TRUE(table.FindAllPrefixMatches("he", &matches));
48 EXPECT_THAT(matches, testing::IsEmpty())
52 std::vector<TrieMatch> matches; local
58 std::vector<TrieMatch> matches; local
64 std::vector<TrieMatch> matches; local
70 std::vector<TrieMatch> matches; local
76 std::vector<TrieMatch> matches; local
82 std::vector<TrieMatch> matches; local
    [all...]
double_array_trie_test.cc 42 std::vector<TrieMatch> matches; local
43 EXPECT_TRUE(trie.FindAllPrefixMatches("hello there", &matches));
44 EXPECT_EQ(matches.size(), 2);
45 EXPECT_EQ(matches[0].id, 0 /*hell*/);
46 EXPECT_EQ(matches[0].match_length, 4 /*hell*/);
47 EXPECT_EQ(matches[1].id, 1 /*hello*/);
48 EXPECT_EQ(matches[1].match_length, 5 /*hello*/);
52 std::vector<TrieMatch> matches; local
53 EXPECT_TRUE(trie.FindAllPrefixMatches("he", &matches));
54 EXPECT_THAT(matches, testing::IsEmpty())
58 std::vector<TrieMatch> matches; local
64 std::vector<TrieMatch> matches; local
70 std::vector<TrieMatch> matches; local
76 std::vector<TrieMatch> matches; local
82 std::vector<TrieMatch> matches; local
    [all...]
  /external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
DiagnosingMatcher.java 11 public final boolean matches(Object item) { method in class:DiagnosingMatcher
12 return matches(item, Description.NONE);
17 matches(item, mismatchDescription); method
20 protected abstract boolean matches(Object item, Description mismatchDescription); method in class:DiagnosingMatcher
  /external/mockito/src/main/java/org/mockito/
ArgumentMatcher.java 53 * public boolean matches(List list) {
127 boolean matches(T argument); method in interface:ArgumentMatcher
  /external/mockito/src/test/java/org/mockito/internal/matchers/
InstanceOfTest.java 22 assertThat(new InstanceOf(Object.class, "matches something").toString()).isEqualTo("matches something");
27 assertThat(new InstanceOf(Object.class).matches(new Object())).isTrue();
28 assertThat(new InstanceOf(Object.class).matches(new ArrayList())).isTrue();
29 assertThat(new InstanceOf(List.class).matches(new ArrayList())).isTrue();
30 assertThat(new InstanceOf(List.class).matches(new Object())).isFalse();
35 assertThat(new InstanceOf(int.class).matches(1000)).isTrue();
36 assertThat(new InstanceOf(Integer.class).matches(1000)).isTrue();
37 assertThat(new InstanceOf(int.class).matches(new Integer(1000))).isTrue();
38 assertThat(new InstanceOf(Integer.class).matches(new Integer(1000))).isTrue()
    [all...]
StringMatchersTest.java 18 assertTrue(new StartsWith("mockito").matches("mockito is here"));
23 assertFalse(new StartsWith("junit").matches("mockito is here"));
28 assertFalse(new StartsWith("java").matches(null));
33 assertTrue(new EndsWith("mockito").matches("here is mockito"));
38 assertFalse(new EndsWith("junit").matches("here is mockito"));
43 assertFalse(new EndsWith("java").matches(null));
48 assertTrue(new Contains("mockito").matches("****mockito****"));
53 assertFalse(new Contains("junit").matches("****mockito****"));
58 assertFalse(new Contains("mockito").matches(null));
63 assertTrue(new Find("eleph.nt").matches("the elephant in the room"))
    [all...]
  /external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/zstandard/
ZstdUtilsTest.java 32 assertFalse(ZstdUtils.matches(data, 3));
33 assertTrue(ZstdUtils.matches(data, 4));
34 assertTrue(ZstdUtils.matches(data, 5));
36 assertFalse(ZstdUtils.matches(data, 4));
44 assertFalse(ZstdUtils.matches(data, 4));
47 assertTrue(ZstdUtils.matches(data, 4));
49 assertFalse(ZstdUtils.matches(data, 3));
50 assertTrue(ZstdUtils.matches(data, 5));
  /external/llvm/tools/llvm-cov/
CoverageFilters.cpp 20 bool NameCoverageFilter::matches(const coverage::FunctionRecord &Function) { function in class:NameCoverageFilter
26 NameRegexCoverageFilter::matches(const coverage::FunctionRecord &Function) { function in class:NameRegexCoverageFilter
30 bool RegionCoverageFilter::matches(const coverage::FunctionRecord &Function) { function in class:RegionCoverageFilter
35 bool LineCoverageFilter::matches(const coverage::FunctionRecord &Function) { function in class:LineCoverageFilter
44 bool CoverageFilters::matches(const coverage::FunctionRecord &Function) { function in class:CoverageFilters
46 if (Filter->matches(Function))
53 CoverageFiltersMatchAll::matches(const coverage::FunctionRecord &Function) { function in class:CoverageFiltersMatchAll
55 if (!Filter->matches(Function))
  /external/easymock/src/org/easymock/
IArgumentMatcher.java 37 boolean matches(Object argument); method in interface:IArgumentMatcher
  /external/icu/android_icu4j/src/main/java/android/icu/text/
DictionaryMatcher.java 31 public abstract int matches(CharacterIterator text, int maxLength, int[] lengths, method in class:DictionaryMatcher
34 public int matches(CharacterIterator text, int maxLength, int[] lengths, method in class:DictionaryMatcher
36 return matches(text, maxLength, lengths, count, limit, null);
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DictionaryMatcher.java 30 public abstract int matches(CharacterIterator text, int maxLength, int[] lengths, method in class:DictionaryMatcher
33 public int matches(CharacterIterator text, int maxLength, int[] lengths, method in class:DictionaryMatcher
35 return matches(text, maxLength, lengths, count, limit, null);
  /external/clang/unittests/ASTMatchers/
ASTMatchersNodeTest.cpp 36 EXPECT_TRUE(matches("namespace x { class X {}; } using x::X;",
42 EXPECT_TRUE(matches("typedef int X;", NamedX));
43 EXPECT_TRUE(matches("int X;", NamedX));
44 EXPECT_TRUE(matches("class foo { virtual void X(); };", NamedX));
45 EXPECT_TRUE(matches("void foo() try { } catch(int X) { }", NamedX));
46 EXPECT_TRUE(matches("void foo() { int X; }", NamedX));
47 EXPECT_TRUE(matches("namespace X { }", NamedX));
48 EXPECT_TRUE(matches("enum X { A, B, C };", NamedX));
55 EXPECT_TRUE(matches("typedef int Xa;", NamedX));
56 EXPECT_TRUE(matches("int Xb;", NamedX))
    [all...]
ASTMatchersNarrowingTest.cpp 28 EXPECT_TRUE(matches(Program,
31 EXPECT_TRUE(matches(Program,
36 EXPECT_TRUE(matches(Program,
42 EXPECT_TRUE(matches(Program,
53 EXPECT_TRUE(matches("class Y { class X {}; };", HasClassX));
54 EXPECT_TRUE(matches("class X {};", HasClassX));
58 EXPECT_TRUE(matches("class Y { class X {}; };", YHasClassX));
77 EXPECT_TRUE(matches(
89 EXPECT_TRUE(matches(
103 EXPECT_TRUE(matches(
    [all...]
  /external/catch2/projects/SelfTest/IntrospectiveTests/
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/mockito/src/main/java/org/mockito/internal/matchers/
And.java 22 public boolean matches(Object actual) { method in class:And
23 return m1.matches(actual) && m2.matches(actual);
Or.java 22 public boolean matches(Object actual) { method in class:Or
23 return m1.matches(actual) || m2.matches(actual);

Completed in 1320 milliseconds

1 2 3 4 5 6 7 8 91011>>