enginetest

package
v0.19.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package enginetest provides reusable acceptance tests for verifying engine implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTests

func RunTests(t *testing.T, setup SetupFunc)

RunTests runs acceptance tests against a Dogma engine implementation.

Types

type SetupFunc

type SetupFunc func(SetupParams) SetupResult

SetupFunc is a function that sets up an engine for testing.

type SetupParams

type SetupParams struct {
	App dogma.Application
}

SetupParams are the parameters for a SetupFunc.

type SetupResult

type SetupResult struct {
	RunEngine func(ctx context.Context) error
	Executor  dogma.CommandExecutor
}

SetupResult is the result of a call to a SetupFunc.

Directories

Path Synopsis
internal
action
Package action provides a mechanism for triggering arbitrary actions within handlers by encoding the actions to perform within Dogma messages.
Package action provides a mechanism for triggering arbitrary actions within handlers by encoding the actions to perform within Dogma messages.
testapp
Package testapp contains a Dogma application that is used to test engine implementations.
Package testapp contains a Dogma application that is used to test engine implementations.
Package stubs is a set of test stubs for Dogma interfaces.
Package stubs is a set of test stubs for Dogma interfaces.
Package uuidtest provides utilities for working with UUIDs in tests.
Package uuidtest provides utilities for working with UUIDs in tests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL