kotest-assertions / io.kotest.assertions.show

Package io.kotest.assertions.show

Types

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<*>>

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

interface Show<in A>

StringShow

object StringShow : Show<String>

Extensions for External Classes

kotlin.Any

Functions

convertValueToString

fun convertValueToString(value: Any?): String

dataClassShow

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

showFor

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