/external/mockito/src/main/java/org/mockito/hamcrest/ |
D | MockitoHamcrest.java | 60 public static <T> T argThat(Matcher<T> matcher) { in argThat() 74 public static char charThat(Matcher<Character> matcher) { in charThat() 88 public static boolean booleanThat(Matcher<Boolean> matcher) { in booleanThat() 102 public static byte byteThat(Matcher<Byte> matcher) { in byteThat() 116 public static short shortThat(Matcher<Short> matcher) { in shortThat() 130 public static int intThat(Matcher<Integer> matcher) { in intThat() 144 public static long longThat(Matcher<Long> matcher) { in longThat() 158 public static float floatThat(Matcher<Float> matcher) { in floatThat() 172 public static double doubleThat(Matcher<Double> matcher) { in doubleThat() 177 private static <T> void reportMatcher(Matcher<T> matcher) { in reportMatcher()
|
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/ |
D | LocaleMatcherTest.java | 80 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 116 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 133 final LocaleMatcher matcher = newLocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB() local 145 final LocaleMatcher matcher = newLocaleMatcher(lpl, null, 0.09); in testFallbacks() local 159 final LocaleMatcher matcher = newLocaleMatcher( in testOverrideData() local 177 …final LocaleMatcher matcher = newLocaleMatcher(LocalePriorityList.add(ULocale.FRENCH).add(ULocale.… in testBasics() local 192 final LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testFallback() local 205 final LocaleMatcher matcher = newLocaleMatcher("en, fil, ro, nn"); in testSpecials() local 219 final LocaleMatcher matcher = newLocaleMatcher("en, en_GB, es, es_419"); in testRegionalSpecials() local 231 final LocaleMatcher matcher = newLocaleMatcher("zh, zh_TW, zh_MO"); in testHK() local [all …]
|
/external/rust/crates/grpcio-sys/grpc/test/core/security/ |
D | authorization_matchers_test.cc | 35 AlwaysAuthorizationMatcher matcher; in TEST_F() local 41 AlwaysAuthorizationMatcher matcher(/*not_rule=*/true); in TEST_F() local 57 AndAuthorizationMatcher matcher(std::move(rules)); in TEST_F() local 73 AndAuthorizationMatcher matcher(std::move(rules)); in TEST_F() local 89 AndAuthorizationMatcher matcher(std::move(ids), /*not_rule=*/true); in TEST_F() local 106 OrAuthorizationMatcher matcher(std::move(rules)); in TEST_F() local 120 OrAuthorizationMatcher matcher(std::move(rules)); in TEST_F() local 134 OrAuthorizationMatcher matcher(std::move(rules), /*not_rule=*/true); in TEST_F() local 156 AndAuthorizationMatcher matcher(std::move(and_rules)); in TEST_F() local 183 AndAuthorizationMatcher matcher(std::move(and_rules)); in TEST_F() local [all …]
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/text/ |
D | IsEqualIgnoringCaseTest.java | 13 Matcher<String> matcher = equalToIgnoringCase("irrelevant"); in copesWithNullsAndUnknownTypes() local 21 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in ignoresCaseOfCharsInString() local 31 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in mismatchesIfAdditionalWhitespaceIsPresent() local 39 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in mismatchesNull() local 52 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in describesItself() local 58 final Matcher<String> matcher = equalToIgnoringCase("heLLo"); in describesAMismatch() local
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 79 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 87 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 101 final LocaleMatcher matcher = newLocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB() local 111 final LocaleMatcher matcher = newLocaleMatcher(lpl); in testFallbacks() local 117 LocaleMatcher matcher = newLocaleMatcher( in testBasics() local 181 LocaleMatcher matcher = LocaleMatcher.builder(). in testSupportedDefault() local 205 LocaleMatcher matcher = LocaleMatcher.builder(). in testUnsupportedDefault() local 229 LocaleMatcher matcher = LocaleMatcher.builder(). in testNoDefault() local 251 final LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testFallback() local 262 final LocaleMatcher matcher = newLocaleMatcher("en, fil, ro, nn"); in testSpecials() local [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 82 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 90 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 104 final LocaleMatcher matcher = newLocaleMatcher("fr, en, en_GB, es_MX, es_419, es"); in testenGB() local 114 final LocaleMatcher matcher = newLocaleMatcher(lpl); in testFallbacks() local 120 LocaleMatcher matcher = newLocaleMatcher( in testBasics() local 184 LocaleMatcher matcher = LocaleMatcher.builder(). in testSupportedDefault() local 208 LocaleMatcher matcher = LocaleMatcher.builder(). in testUnsupportedDefault() local 232 LocaleMatcher matcher = LocaleMatcher.builder(). in testNoDefault() local 254 final LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testFallback() local 265 final LocaleMatcher matcher = newLocaleMatcher("en, fil, ro, nn"); in testSpecials() local [all …]
|
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/ |
D | DescribedAsTest.java | 15 Matcher<Object> matcher = describedAs("irrelevant", anything()); in copesWithNullsAndUnknownTypes() local 23 Matcher<?> matcher = describedAs("my description", anything()); in overridesDescriptionOfOtherMatcherWithThatPassedToConstructor() local 30 Matcher<?> matcher = describedAs("value 1 = %0, value 2 = %1", anything(), 33, 97); in appendsValuesToDescription() local 37 Matcher<String> matcher = describedAs("irrelevant", equalTo("hi")); in celegatesMatchingToAnotherMatcher() local 45 Matcher<Integer> matcher = describedAs("irrelevant", equalTo(2)); in delegatesMismatchDescriptionToAnotherMatcher() local
|
D | IsTest.java | 15 Matcher<String> matcher = is("something"); in copesWithNullsAndUnknownTypes() local 23 final Matcher<Boolean> matcher = is(equalTo(true)); in matchesTheSameWayTheUnderlyingMatcherDoes() local 37 final Matcher<String> matcher = is("A"); in providesConvenientShortcutForIsEqualTo() local 46 final Matcher matcher = isA(Integer.class); in providesConvenientShortcutForIsInstanceOf() local
|
D | AnyOfTest.java | 16 Matcher<String> matcher = anyOf(equalTo("irrelevant"), startsWith("irr")); in copesWithNullsAndUnknownTypes() local 24 Matcher<String> matcher = anyOf(startsWith("goo"), endsWith("ood")); in evaluatesToTheTheLogicalDisjunctionOfTwoOtherMatchers() local 34 …Matcher<String> matcher = anyOf(startsWith("g"), startsWith("go"), endsWith("d"), startsWith("go")… in evaluatesToTheTheLogicalDisjunctionOfManyOtherMatchers() local 43 final Matcher<SampleSubClass> matcher = anyOf( in supportsMixedTypes() local
|
D | AllOfTest.java | 18 Matcher<String> matcher = allOf(equalTo("irrelevant"), startsWith("irr")); in copesWithNullsAndUnknownTypes() local 26 Matcher<String> matcher = allOf(startsWith("goo"), endsWith("ood")); in evaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers() local 36 …Matcher<String> matcher = allOf(startsWith("g"), startsWith("go"), endsWith("d"), startsWith("go")… in evaluatesToTheTheLogicalConjunctionOfManyOtherMatchers() local 44 final Matcher<SampleSubClass> matcher = allOf( in supportsMixedTypes() local
|
D | IsEqualTest.java | 14 Matcher<?> matcher = equalTo("irrelevant"); in copesWithNullsAndUnknownTypes() local 35 final Matcher<Object> matcher = equalTo(null); in canCompareNullValues() local 59 Matcher<Object> matcher = equalTo(null); in honoursIsEqualImplementationEvenWithNullValues() local 72 final Matcher<String[]> matcher = equalTo(s1); in comparesTheElementsOfAnObjectArray() local 87 final Matcher<int[]> matcher = equalTo(i1); in comparesTheElementsOfAnArrayOfPrimitiveTypes() local 102 final Matcher<int[][]> matcher = equalTo(i1); in recursivelyTestsElementsOfArrays() local
|
D | IsNotTest.java | 15 Matcher<String> matcher = not("something"); in copesWithNullsAndUnknownTypes() local 23 final Matcher<String> matcher = not(equalTo("A")); in evaluatesToTheTheLogicalNegationOfAnotherMatcher() local 31 final Matcher<String> matcher = not("A"); in providesConvenientShortcutForNotEqualTo() local
|
D | IsSameTest.java | 15 Matcher<String> matcher = sameInstance("irrelevant"); in copesWithNullsAndUnknownTypes() local 24 Matcher<Object> matcher = sameInstance(o1); in evaluatesToTrueIfArgumentIsReferenceToASpecifiedObject() local 33 Matcher<Object> matcher = theInstance(o1); in alternativeFactoryMethodAlsoMatchesOnlyIfArgumentIsReferenceToASpecifiedObject() local
|
/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/ |
D | HasToStringTest.java | 21 Matcher<Object> matcher = hasToString(equalTo("irrelevant")); in copesWithNullsAndUnknownTypes() local 29 final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); in matchesWhenUtilisingANestedMatcher() local 37 final Matcher<Object> matcher = hasToString(TO_STRING_RESULT); in matchesWhenUsingShortcutForHasToStringEqualTo() local 45 final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); in describesItself() local 51 final Matcher<Object> matcher = hasToString(equalTo(TO_STRING_RESULT)); in describesAMismatch() local
|
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/ |
D | AbstractMatcherTest.java | 13 public static <T> void assertMatches(Matcher<T> matcher, T arg) { in assertMatches() 17 public static <T> void assertMatches(String message, Matcher<T> matcher, T arg) { in assertMatches() 31 public static void assertDescription(String expected, Matcher<?> matcher) { in assertDescription() 37 …public static <T> void assertMismatchDescription(String expected, Matcher<? super T> matcher, T ar… in assertMismatchDescription() 42 public static void assertNullSafe(Matcher<?> matcher) { in assertNullSafe() 51 public static void assertUnknownTypeSafe(Matcher<?> matcher) { in assertUnknownTypeSafe() 60 public static <T> String mismatchDescription(Matcher<? super T> matcher, T arg) { in mismatchDescription()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | CharMatcherTest.java | 132 private void doTestSetBits(CharMatcher matcher) { in doTestSetBits() 169 private void doTestEmpty(CharMatcher matcher) throws Exception { in doTestEmpty() 175 private void reallyTestEmpty(CharMatcher matcher) throws Exception { in reallyTestEmpty() 200 private static void doTestNull(CharMatcher matcher) throws Exception { in doTestNull() 223 private void doTestNoMatches(CharMatcher matcher, String s) { in doTestNoMatches() 250 private void doTestAllMatches(CharMatcher matcher, String s) { in doTestAllMatches() 261 private void reallyTestNoMatches(CharMatcher matcher, CharSequence s) { in reallyTestNoMatches() 289 private void reallyTestAllMatches(CharMatcher matcher, CharSequence s) { in reallyTestAllMatches() 316 private void doTestGeneral(CharMatcher matcher, char match, char noMatch) { in doTestGeneral() 323 private void doTestOneCharMatch(CharMatcher matcher, String s) { in doTestOneCharMatch() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/base/ |
D | CharMatcherTest.java | 132 private void doTestSetBits(CharMatcher matcher) { in doTestSetBits() 169 private void doTestEmpty(CharMatcher matcher) throws Exception { in doTestEmpty() 175 private void reallyTestEmpty(CharMatcher matcher) throws Exception { in reallyTestEmpty() 200 private static void doTestNull(CharMatcher matcher) throws Exception { in doTestNull() 223 private void doTestNoMatches(CharMatcher matcher, String s) { in doTestNoMatches() 250 private void doTestAllMatches(CharMatcher matcher, String s) { in doTestAllMatches() 261 private void reallyTestNoMatches(CharMatcher matcher, CharSequence s) { in reallyTestNoMatches() 289 private void reallyTestAllMatches(CharMatcher matcher, CharSequence s) { in reallyTestAllMatches() 316 private void doTestGeneral(CharMatcher matcher, char match, char noMatch) { in doTestGeneral() 323 private void doTestOneCharMatch(CharMatcher matcher, String s) { in doTestOneCharMatch() [all …]
|
/external/libtextclassifier/native/utils/grammar/parsing/ |
D | matcher_test.cc | 137 Matcher matcher(&unilib_, rules_set, &arena_); in TEST_F() local 194 Matcher matcher(&unilib_, rules_set, &arena_); in TEST_F() local 229 Matcher matcher(&unilib_, rules_set, &arena_); in TEST_F() local 253 Matcher matcher(&unilib_, rules_set, &arena_); in TEST_F() local 282 Matcher matcher(&unilib_, rules_set, &arena_); in TEST_F() local 318 Matcher matcher(&unilib_, rules_set, &arena_); in TEST_F() local 330 Matcher matcher(&unilib_, rules_set, &arena_); in TEST_F() local 362 Matcher matcher(&unilib_, rules_set, &arena_); in TEST_F() local 374 Matcher matcher(&unilib_, rules_set, &arena_); in TEST_F() local 384 Matcher matcher(&unilib_, rules_set, &arena_); in TEST_F() local [all …]
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/ |
D | CombinableMatcher.java | 10 private final Matcher<? super T> matcher; field in CombinableMatcher 12 public CombinableMatcher(Matcher<? super T> matcher) { in CombinableMatcher() 50 public static <LHS> CombinableBothMatcher<LHS> both(Matcher<? super LHS> matcher) { in both() 56 public CombinableBothMatcher(Matcher<? super X> matcher) { in CombinableBothMatcher() 69 public static <LHS> CombinableEitherMatcher<LHS> either(Matcher<? super LHS> matcher) { in either() 75 public CombinableEitherMatcher(Matcher<? super X> matcher) { in CombinableEitherMatcher()
|
D | IsNot.java | 14 private final Matcher<T> matcher; field in IsNot 16 public IsNot(Matcher<T> matcher) { in IsNot() 40 public static <T> Matcher<T> not(Matcher<T> matcher) { in not()
|
/external/mockito/src/test/java/org/mockitousage/bugs/ |
D | EqualsWithDeltaTest.java | 17 ArgumentMatcher<Number> matcher = equalsWithDelta(null); in testEqualsWithDelta_NullExpected() local 23 ArgumentMatcher<Number> matcher = equalsWithDelta(1.0); in testEqualsWithDelta_NullActual() local 29 ArgumentMatcher<Number> matcher = equalsWithDelta(null); in testEqualsWithDelta_NullActualAndExpected() local 37 ArgumentMatcher<Number> matcher = equalsWithDelta(expected); in testEqualsWithDelta_WhenActualAndExpectedAreTheSameObject() local
|
/external/mockito/src/main/java/org/mockito/ |
D | ArgumentMatchers.java | 1195 public static <T> T argThat(ArgumentMatcher<T> matcher) { in argThat() 1210 public static char charThat(ArgumentMatcher<Character> matcher) { in charThat() 1225 public static boolean booleanThat(ArgumentMatcher<Boolean> matcher) { in booleanThat() 1240 public static byte byteThat(ArgumentMatcher<Byte> matcher) { in byteThat() 1255 public static short shortThat(ArgumentMatcher<Short> matcher) { in shortThat() 1270 public static int intThat(ArgumentMatcher<Integer> matcher) { in intThat() 1285 public static long longThat(ArgumentMatcher<Long> matcher) { in longThat() 1300 public static float floatThat(ArgumentMatcher<Float> matcher) { in floatThat() 1315 public static double doubleThat(ArgumentMatcher<Double> matcher) { in doubleThat() 1320 private static void reportMatcher(ArgumentMatcher<?> matcher) { in reportMatcher()
|
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/internal/ |
D | MatcherTest.java | 31 private void checkMatcherBehavesAsExpected(MatcherApi matcher) { in checkMatcherBehavesAsExpected() 68 private void assertMatched(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertMatched() 75 private void assertInvalid(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertInvalid() 82 private void assertTooLong(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertTooLong()
|
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/format/ |
D | TestJsonFormatDetection.java | 17 …DataFormatMatcher matcher = detector.findFormat(new ByteArrayInputStream(ARRAY_JSON.getBytes("UTF-… in testSimpleValidArray() local 39 … DataFormatMatcher matcher = detector.findFormat(new ByteArrayInputStream(JSON.getBytes("UTF-8"))); in testSimpleValidObject() local 72 … private void _testSimpleValidString(JsonFactory jsonF, DataFormatMatcher matcher) throws Exception in _testSimpleValidString() 90 …DataFormatMatcher matcher = detector.findFormat(new ByteArrayInputStream(NON_JSON.getBytes("UTF-8"… in testSimpleInvalid() local
|
/external/icu/icu4c/source/test/intltest/ |
D | localematchertest.cpp | 99 LocaleMatcher matcher = LocaleMatcher::Builder().build(errorCode); in testEmpty() local 128 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local 142 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local 155 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local 170 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local 184 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local 199 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local 216 LocaleMatcher matcher = LocaleMatcher::Builder(). in testBasics() local 266 LocaleMatcher matcher = LocaleMatcher::Builder(). in testSupportedDefault() local 290 LocaleMatcher matcher = LocaleMatcher::Builder(). in testUnsupportedDefault() local [all …]
|