Home
last modified time | relevance | path

Searched refs:mismatchDescription (Results 1 – 25 of 36) sorted by relevance

12

/external/noto-fonts/emoji-compat/tests/src/androidx/emoji2/bundled/util/
DEmojiMatcher.java97 Description mismatchDescription) {
98 mismatchDescription.appendText(" has no EmojiSpans");
126 Description mismatchDescription) {
127 mismatchDescription.appendText(" has ");
129 mismatchDescription.appendValue("no");
131 mismatchDescription.appendValue(mSpans.length);
134 mismatchDescription.appendText(" EmojiSpans");
182 Description mismatchDescription) {
184 mismatchDescription.appendText("[");
187 mismatchDescription.appendText(Integer.toHexString(codepoint));
[all …]
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
DIsIterableContainingInOrder.java22 … protected boolean matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription) { in matchesSafely() argument
23 final MatchSeries<E> matchSeries = new MatchSeries<E>(matchers, mismatchDescription); in matchesSafely()
40 private final Description mismatchDescription; field in IsIterableContainingInOrder.MatchSeries
43 public MatchSeries(List<Matcher<? super F>> matchers, Description mismatchDescription) { in MatchSeries() argument
44 this.mismatchDescription = mismatchDescription; in MatchSeries()
53 mismatchDescription.appendText("not matched: ").appendValue(item); in matches()
62mismatchDescription.appendText("no item was ").appendDescriptionOf(matchers.get(nextMatchIx)); in isFinished()
79 mismatchDescription.appendText("item " + nextMatchIx + ": "); in describeMismatch()
80 matcher.describeMismatch(item, mismatchDescription); in describeMismatch()
DIsIterableContainingInAnyOrder.java22 protected boolean matchesSafely(Iterable<? extends T> items, Description mismatchDescription) { in matchesSafely() argument
23 final Matching<T> matching = new Matching<T>(matchers, mismatchDescription); in matchesSafely()
42 private final Description mismatchDescription; field in IsIterableContainingInAnyOrder.Matching
44 public Matching(Collection<Matcher<? super S>> matchers, Description mismatchDescription) { in Matching() argument
46 this.mismatchDescription = mismatchDescription; in Matching()
51 mismatchDescription.appendText("no match for: ").appendValue(item); in matches()
61 mismatchDescription in isFinished()
74 mismatchDescription.appendText("not matched: ").appendValue(item); in isMatched()
DIsIterableContainingInRelativeOrder.java21 … protected boolean matchesSafely(Iterable<? extends E> iterable, Description mismatchDescription) { in matchesSafely() argument
22 …r<E> matchSeriesInRelativeOrder = new MatchSeriesInRelativeOrder<E>(matchers, mismatchDescription); in matchesSafely()
33 private final Description mismatchDescription; field in IsIterableContainingInRelativeOrder.MatchSeriesInRelativeOrder
37 …ic MatchSeriesInRelativeOrder(List<Matcher<? super F>> matchers, Description mismatchDescription) { in MatchSeriesInRelativeOrder() argument
38 this.mismatchDescription = mismatchDescription; in MatchSeriesInRelativeOrder()
59mismatchDescription.appendDescriptionOf(matchers.get(nextMatchIx)).appendText(" was not found"); in isFinished()
61 mismatchDescription.appendText(" after ").appendValue(lastMatchedItem); in isFinished()
DIsArray.java32 public void describeMismatchSafely(T[] actual, Description mismatchDescription) { in describeMismatchSafely() argument
34 mismatchDescription.appendText("array length was ").appendValue(actual.length); in describeMismatchSafely()
39 mismatchDescription.appendText("element ").appendValue(i).appendText(" "); in describeMismatchSafely()
40 elementMatchers[i].describeMismatch(actual[i], mismatchDescription); in describeMismatchSafely()
DIsEmptyIterable.java17 … public void describeMismatchSafely(Iterable<? extends E> iter, Description mismatchDescription) { in describeMismatchSafely() argument
18 mismatchDescription.appendValueList("[", ",", "]", iter); in describeMismatchSafely()
DIsEmptyCollection.java20 …public void describeMismatchSafely(Collection<? extends E> item, Description mismatchDescription) { in describeMismatchSafely() argument
21 mismatchDescription.appendValue(item); in describeMismatchSafely()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
DIsCollectionContaining.java21 … protected boolean matchesSafely(Iterable<? super T> collection, Description mismatchDescription) { in matchesSafely() argument
23 mismatchDescription.appendText("was empty"); in matchesSafely()
33 mismatchDescription.appendText("mismatches were: ["); in matchesSafely()
37 mismatchDescription.appendText(", "); in matchesSafely()
39 elementMatcher.describeMismatch(item, mismatchDescription); in matchesSafely()
42 mismatchDescription.appendText("]"); in matchesSafely()
DEvery.java15 … public boolean matchesSafely(Iterable<? extends T> collection, Description mismatchDescription) { in matchesSafely() argument
18 mismatchDescription.appendText("an item "); in matchesSafely()
19 matcher.describeMismatch(t, mismatchDescription); in matchesSafely()
DSubstringMatcher.java26 public void describeMismatchSafely(String item, Description mismatchDescription) { in describeMismatchSafely() argument
27 mismatchDescription.appendText("was \"").appendText(item).appendText("\""); in describeMismatchSafely()
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
DTypeSafeDiagnosingMatcher.java25 protected abstract boolean matchesSafely(T item, Description mismatchDescription); in matchesSafely() argument
62 public final void describeMismatch(Object item, Description mismatchDescription) { in describeMismatch() argument
64 super.describeMismatch(item, mismatchDescription); in describeMismatch()
66 matchesSafely((T) item, mismatchDescription); in describeMismatch() local
DDiagnosingMatcher.java16 public final void describeMismatch(Object item, Description mismatchDescription) { in describeMismatch() argument
17 matches(item, mismatchDescription); in describeMismatch()
20 protected abstract boolean matches(Object item, Description mismatchDescription); in matches() argument
DTypeSafeMatcher.java53 protected void describeMismatchSafely(T item, Description mismatchDescription) { in describeMismatchSafely() argument
54 super.describeMismatch(item, mismatchDescription); in describeMismatchSafely()
/external/mockito/src/test/java/org/mockito/internal/hamcrest/
DMatcherGenericTypeExtractorTest.java59 public void describeMismatch(Object item, Description mismatchDescription) {} in describeMismatch() argument
68 public void describeMismatch(Object item, Description mismatchDescription) {} in describeMismatch() argument
78 public void describeMismatch(Object item, Description mismatchDescription) {} in describeMismatch() argument
89 public void describeMismatch(Object item, Description mismatchDescription) {} in describeMismatch() argument
123 public void describeMismatch(Object item, Description mismatchDescription) { in findsGenericType()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/object/
DIsEventFrom.java23 public boolean matchesSafely(EventObject item, Description mismatchDescription) { in matchesSafely() argument
25 mismatchDescription.appendText("item type was " + item.getClass().getName()); in matchesSafely()
30 mismatchDescription.appendText("source was ").appendValue(item.getSource()); in matchesSafely()
DIsCompatibleType.java20 public void describeMismatchSafely(Class<?> cls, Description mismatchDescription) { in describeMismatchSafely() argument
21 mismatchDescription.appendValue(cls.getName()); in describeMismatchSafely()
/external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/
DFeatureMatcherTest.java31 StringDescription mismatchDescription = new StringDescription(); in doesNotThrowClassCastException() local
32 resultMatcher.describeMismatch(new ShouldNotMatch(), mismatchDescription); in doesNotThrowClassCastException()
33 assertEquals("was <ShouldNotMatch>", mismatchDescription.toString()); in doesNotThrowClassCastException()
DAbstractMatcherTest.java19 Assert.fail(message + " because: '" + mismatchDescription(matcher, arg) + "'"); in assertMatches()
39 … Assert.assertEquals("Expected mismatch description", expected, mismatchDescription(matcher, arg)); in assertMismatchDescription()
60 public static <T> String mismatchDescription(Matcher<? super T> matcher, T arg) { in mismatchDescription() method in AbstractMatcherTest
DCustomTypeSafeMatcherTest.java17 public void describeMismatchSafely(String item, Description mismatchDescription) {
18 mismatchDescription.appendText("an " + item);
DTypeSafeMatcherTest.java18 public void describeMismatchSafely(String item, Description mismatchDescription) { in describeMismatchSafely() argument
19 mismatchDescription.appendText("The mismatch"); in describeMismatchSafely()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/number/
DIsNaN.java21 public void describeMismatchSafely(Double item, Description mismatchDescription) { in describeMismatchSafely() argument
22 mismatchDescription.appendText("was ").appendValue(item); in describeMismatchSafely()
DIsCloseTo.java29 public void describeMismatchSafely(Double item, Description mismatchDescription) { in describeMismatchSafely() argument
30 mismatchDescription.appendValue(item) in describeMismatchSafely()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/
DIsEqualIgnoringCase.java30 public void describeMismatchSafely(String item, Description mismatchDescription) { in describeMismatchSafely() argument
31 mismatchDescription.appendText("was ").appendValue(item); in describeMismatchSafely()
DStringContainsInOrder.java31 public void describeMismatchSafely(String item, Description mismatchDescription) { in describeMismatchSafely() argument
32 mismatchDescription.appendText("was \"").appendText(item).appendText("\""); in describeMismatchSafely()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/comparator/
DComparatorMatcherBuilder.java84 public void describeMismatchSafely(T actual, Description mismatchDescription) {
85 mismatchDescription.appendValue(actual).appendText(" was ")
89 mismatchDescription.appendText(" when compared by ").appendValue(comparator);

12