EvalTestBuilder

scalus.testing.dsl.EvalTestBuilder
class EvalTestBuilder[A](subject: EvalSubject[A], config: EvalConfig = ...)

Fluent builder for evaluation tests.

Usage:

eval(sir)
   .onAllBackends
   .withUplcCli
   .expectSuccess()
   .assertBudgetWithin(1000, 10000)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def expectBudgetWithin(memory: Long, steps: Long): EvalTestResult

Assert budget is within limits

Assert budget is within limits

Attributes

Assert the evaluation fails

Assert the evaluation fails

Attributes

def expectFailureWith(message: String): EvalTestResult

Assert the evaluation fails with a message containing the substring

Assert the evaluation fails with a message containing the substring

Attributes

Assert results are consistent across all backends

Assert results are consistent across all backends

Attributes

Assert the evaluation succeeds

Assert the evaluation succeeds

Attributes

Assert the evaluation succeeds with a specific term

Assert the evaluation succeeds with a specific term

Attributes

def expectValue[V : LiftValue](value: V): EvalTestResult

Assert the evaluation succeeds with a specific value

Assert the evaluation succeeds with a specific value

Attributes

Use all backends for testing

Use all backends for testing

Attributes

Use specific PlutusVM

Use specific PlutusVM

Attributes

def withConfig(newConfig: EvalConfig): EvalTestBuilder[A]

Configure with custom EvalConfig

Configure with custom EvalConfig

Attributes

Include UplcCli in testing (JVM-only)

Include UplcCli in testing (JVM-only)

Attributes