{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
class CursorMatchers.CursorMatcher : BoundedMatcher
| kotlin.Any | |||
| ↳ | org.hamcrest.BaseMatcher | ||
| ↳ | androidx.test.espresso.matcher.BoundedMatcher | ||
| ↳ | androidx.test.espresso.matcher.CursorMatchers.CursorMatcher | ||
A Matcher that matches Cursors based on values in their columns.
Public constructors |
|
|---|---|
Public functions |
|
|---|---|
Unit |
describeTo(description: Description!) |
Boolean |
matchesSafely(cursor: Cursor!) |
CursorMatchers.CursorMatcher! |
withStrictColumnChecks(checkColumns: Boolean)Allows test authors to override whether the the matcher should throw an if the column name/count is not valid. |
Inherited functions |
||||||
|---|---|---|---|---|---|---|
|
||||||
|
||||||
fun withStrictColumnChecks(checkColumns: Boolean): CursorMatchers.CursorMatcher!
Allows test authors to override whether the the matcher should throw an if the column name/count is not valid. This is useful in the case where a cursor may iterates over a data set with variable columns. By default, the checks are off.