Function

assertAll

Asserts that all the nodes in this collection satisfy the given matcher.

assertAll

Source set: Common
public fun SemanticsNodeInteractionCollection.assertAll(
    matcher: SemanticsMatcher
): SemanticsNodeInteractionCollection

Asserts that all the nodes in this collection satisfy the given matcher.

This passes also for empty collections.

Parameters

matcher Matcher that has to be satisfied by all the nodes in the collection.

Throws: AssertionError

if the collection contains at least one element that does not satisfy the given matcher.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: