CharSequenceContains

Tests if the argument is a string that contains a substring.

Functions

Link copied to clipboard
open fun containsCharSequence(substring: CharSequence): Matcher<CharSequence>
Creates a matcher that matches if the examined CharSequence contains the specified CharSequence anywhere.
Link copied to clipboard
open fun containsString(substring: CharSequence): Matcher<CharSequence>
Alias for containsCharSequence for better discoverability.
Link copied to clipboard
fun describeMismatch(item: Any, description: Description)
Link copied to clipboard
open fun describeMismatchSafely(item: CharSequence, mismatchDescription: Description)
Link copied to clipboard
open fun describeTo(description: Description)
abstract fun describeTo(p: Description)
Link copied to clipboard
fun matches(item: Any): Boolean
Link copied to clipboard
Link copied to clipboard
open fun toString(): String