GlanceNode

abstract class GlanceNode<T : Any?>

Known direct subclasses
GlanceMappedNode

An implementation of GlanceNode node that uses MappedNode to perform assertions during testing.


A wrapper for Glance composable node under test.

Parameters
<T : Any?>

A representation of Glance composable node (e.g. MappedNode) on which assertions can be performed

Summary

Public functions

abstract List<GlanceNode<T>>

Returns children of current glance node.

open operator Boolean
equals(other: Any?)
open Int
abstract String

Returns the Glance node as string that can be presented in error messages helping developer debug the assertion error.

open String

Public properties

T

an object of the representation of the Glance composable node

Public functions

children

Added in 1.1.1
abstract fun children(): List<GlanceNode<T>>

Returns children of current glance node.

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toDebugString

Added in 1.1.1
abstract fun toDebugString(): String

Returns the Glance node as string that can be presented in error messages helping developer debug the assertion error.

toString

open fun toString(): String

Public properties

value

Added in 1.1.1
val value: T

an object of the representation of the Glance composable node