All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.kotest.inspectors.ElementResult.kt Maven / Gradle / Ivy

package io.kotest.inspectors

sealed class ElementResult {
  abstract fun value(): T
  abstract fun error(): Throwable?
}

class ElementPass(val t: T) : ElementResult() {
  override fun value(): T = t
  override fun error(): Throwable? = null
}

class ElementFail(val t: T, val throwable: Throwable) : ElementResult() {
  override fun value(): T = t
  override fun error(): Throwable? = throwable
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy