Outcome

libretto.testing.TestKit.Outcome$
object Outcome

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Outcome.type

Members list

Concise view

Value members

Concrete methods

def assert(using pos: SourcePos)(condition: Boolean, failMsg: String): Outcome[Unit]
def assertEquals[A](actual: A, expected: A)(using pos: SourcePos): Outcome[Unit]
def assertSubstring(using pos: SourcePos)(substr: String, str: String): Outcome[Unit]
def assertTrue(using pos: SourcePos)(condition: Boolean): Outcome[Unit]

Alias for assert.

Alias for assert.

Attributes

def assertTrue(using pos: SourcePos)(condition: Boolean, failMsg: String): Outcome[Unit]

Alias for assert.

Alias for assert.

Attributes

def asyncTestResult[A](fa: Async[TestResult[A]]): Outcome[A]
def crash[A](e: Throwable): Outcome[A]
def expectNotThrows[A](using pos: SourcePos)(a: => A): Outcome[Unit]
def expectThrows[A](using pos: SourcePos)(a: => A): Outcome[Throwable]
def expectThrows[A, B](using pos: SourcePos)(a: => A)(recover: PartialFunction[Throwable, B]): Outcome[B]
def failure[A](using pos: SourcePos)(msg: String, error: Option[Throwable]): Outcome[A]
def fromTestResult[A](res: TestResult[A]): Outcome[A]
def success[A](a: A): Outcome[A]
def toAsyncTestResult[A](outcome: Outcome[A]): Async[TestResult[A]]
def traverse[A, B](as: Iterable[A])(f: A => Outcome[B]): Outcome[List[B]]
def traverseIterator[A, B](it: Iterator[A])(f: A => Outcome[B]): Outcome[List[B]]
def traverseList[A, B](as: List[A])(f: A => Outcome[B]): Outcome[List[B]]

Extensions

Extensions

extension [A](outcome: Outcome[A])
def assertEquals(using pos: SourcePos)(expected: A): Outcome[Unit]