scalus.testing.assertions

Members list

Type members

Classlikes

case class AssertionError(message: String, expected: Expected, actual: Result, logs: Seq[String] = ...) extends AssertionError

Assertion error with detailed information.

Assertion error with detailed information.

Attributes

Supertypes
trait Product
trait Equals
class AssertionError
class Error
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class BudgetAssertionError(message: String, expected: ExUnits, actual: ExUnits) extends AssertionError

Budget assertion error.

Budget assertion error.

Attributes

Supertypes
trait Product
trait Equals
class AssertionError
class Error
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
enum Expected

Expected outcome for evaluation assertions.

Expected outcome for evaluation assertions.

Uses predicate-based matching for flexible assertions.

Attributes

Companion
object
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Expected

Attributes

Companion
enum
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Expected.type

Assertions for multi-backend evaluation results.

Assertions for multi-backend evaluation results.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Core assertion functions for Result.

Core assertion functions for Result.

These are framework-agnostic - they throw exceptions on failure. Test frameworks can catch these and convert to their assertion format.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type