enginetest

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 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
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.

Jump to

Keyboard shortcuts

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