android-components / / Matchers


object Matchers (source)

A collection of non-domain specific Matchers.


Name Summary
maybeInvertMatcher fun <T> maybeInvertMatcher(matcher: Matcher<T>, useUnmodifiedMatcher: Boolean): Matcher<T>
Conditionally applies the not matcher based on the given argument: inverts the matcher when useUnmodifiedMatcher is false, otherwise returns the matcher unmodified.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.