TestTagMarker

Marker element that holds a TestTag for identification in test and preview environments.

This marker element is used internally by the testTag extension function to attach a TestTag to a Marker that will be passed to query, mutation, or subscription operations.

The TestTagMarker allows the client implementation to identify the operation by its TestTag rather than its ID, which is particularly useful when dealing with auto-generated IDs that might change during configuration changes or recompositions.

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val key: Marker.Key<*>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun <R> fold(initial: R, operation: (R, Marker.Element) -> R): R
Link copied to clipboard
open operator override fun <E : Marker.Element> get(key: Marker.Key<E>): E?
Link copied to clipboard
open override fun minusKey(key: Marker.Key<*>): Marker
Link copied to clipboard
open operator fun plus(other: Marker): Marker
Link copied to clipboard

Extension function to add a TestTag to a Marker.