kotest-assertions / io.kotest.assertions.show / Show

Show

interface Show<in A>

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 implementations of the object can be provided to test output.

Functions

show

abstract fun show(a: A): String

Inheritors

DefaultShow

A simple implementation of Show that handles null values, and for non-null just delegates to the toString method of the class.

object DefaultShow : Show<Any?>

KClassShow

object KClassShow : Show<KClass<*>>

StringShow

object StringShow : Show<String>