kotest-assertions / io.kotest.assertions.show

Package io.kotest.assertions.show

Types

ArrayShow

object ArrayShow : Show<Any>

DefaultShow

A default implementation of Show that handles arrays, collections and primitives as well as nullable values.

object DefaultShow : Show<Any?>

IterableShow

class IterableShow<T> : Show<Iterable<T>>

KClassShow

object KClassShow : Show<KClass<*>>

ListShow

class ListShow<T> : Show<List<T>>

MapShow

object MapShow : Show<Map<*, *>>

PathShow

object PathShow : Show<Path>

Printed

data class Printed

Show

The Show typeclass abstracts the ability to obtain a String representation of any object. It is used as a replacement for Java's Object#toString so that custom representations of the object can be printed.

interface Show<in A>

StringShow

object StringShow : Show<String>

Extensions for External Classes

kotlin.Any

kotlin.String

Functions

commonShowFor

fun <T : Any> commonShowFor(t: T): Show<T>

dataClassShow

fun <A : Any> dataClassShow(): Show<A>

platformShow

fun <A : Any> platformShow(a: A): Show<A>?

showFor

fun <T : Any> showFor(t: T): Show<T>