kotest-assertions / io.kotest.assertions.show

Package io.kotest.assertions.show

Types

DefaultShow

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

object DefaultShow : Show<Any?>

KClassShow

object KClassShow : Show<KClass<*>>

MapShow

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

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

dataClassShow

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

showFor

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