Documentation
¶
Index ¶
- Variables
- func Array(expression string, expected []any, desc ...string) spec.Spec
- func Error(expression string, desc ...string) spec.Spec
- func ErrorAs(expression string, expected error, desc ...string) spec.Spec
- func ErrorStr(expression string, expected string, desc ...string) spec.Spec
- func Fn(expression string, assertion assert.Unary, desc ...string) spec.Spec
- func IsRuntimeError(actual, expected any) error
- func Items(expression string, expected ...any) spec.Spec
- func JSON(expression string, expected string, desc ...string) spec.Spec
- func Nil(expression string, desc ...string) spec.Spec
- func Object(expression string, expected map[string]any, desc ...string) spec.Spec
- func RunProgramSpecs(t *testing.T, specs []spec.Spec, opts ...vm.EnvironmentOption)
- func RunRoundTrips(t *testing.T, cases []RoundTrip, opts ...vm.EnvironmentOption)
- func RunRoundTripsWith(t *testing.T, name string, c *compiler.Compiler, cases []RoundTrip, ...)
- func RunSequenceFactory(t *testing.T, factory func() []spec.Sequence, opts ...vm.EnvironmentOption)
- func RunSequences(t *testing.T, sequences []spec.Sequence, opts ...vm.EnvironmentOption)
- func RunSequencesWith(t *testing.T, level compiler.OptimizationLevel, sequences []spec.Sequence, ...)
- func RunSpecFactory(t *testing.T, factory func() []spec.Spec, opts ...vm.EnvironmentOption)
- func RunSpecs(t *testing.T, specs []spec.Spec, opts ...vm.EnvironmentOption)
- func RunSpecsWith(t *testing.T, name string, c *compiler.Compiler, specs []spec.Spec, ...)
- func S(expression string, expected any, desc ...string) spec.Spec
- type ExpectedRuntimeError
- type RoundTrip
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ShouldBeRuntimeError = assert.NewBinaryAssertion(IsRuntimeError)
)
Functions ¶
func IsRuntimeError ¶
func RunProgramSpecs ¶
func RunRoundTrips ¶
func RunRoundTrips(t *testing.T, cases []RoundTrip, opts ...vm.EnvironmentOption)
func RunRoundTripsWith ¶
func RunSequenceFactory ¶
func RunSequences ¶
func RunSequencesWith ¶
func RunSequencesWith(t *testing.T, level compiler.OptimizationLevel, sequences []spec.Sequence, opts ...vm.EnvironmentOption)
func RunSpecFactory ¶
func RunSpecsWith ¶
Types ¶
type ExpectedRuntimeError ¶
Click to show internal directories.
Click to hide internal directories.