Compose Unstyled 2.0 is out! Check the official announcement blog ->
Class

SubspaceSemanticsMatcher

Wrapper for semantics matcher lambdas that allows building a description string explaining to the developer what conditions were being tested.

Source set: Android
public class SubspaceSemanticsMatcher(
    internal val description: String,
    private val matcher: (SubspaceSemanticsInfo) -> Boolean,
)

Wrapper for semantics matcher lambdas that allows building a description string explaining to the developer what conditions were being tested.

This class encapsulates a predicate that evaluates a SubspaceSemanticsInfo node to verify whether it matches the expected semantic properties. It is primarily used by the testing framework to locate nodes within a Subspace hierarchy.

Parameters

description A human-readable explanation of the condition being tested, used in test failure messages.
matcher The predicate function that evaluates a given SubspaceSemanticsInfo.

Companion Object

Last updated: