enginetest

package
v0.0.0-...-4bd6544 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgentAPIManifoldTestConfig

func AgentAPIManifoldTestConfig() engine.AgentAPIManifoldConfig

AgentAPIManifoldTestConfig returns a AgentAPIManifoldConfig suitable for use with RunAgentAPIManifold.

func RunAgentAPIManifold

func RunAgentAPIManifold(
	manifold dependency.Manifold, agent agent.Agent, apiCaller base.APICaller,
) (worker.Worker, error)

RunAgentAPIManifold is useful for testing manifolds based on AgentAPIManifold. It takes the manifold, sets up the resources required to successfully pass AgentAPIManifold's checks and then runs the manifold start func.

An agent and apiCaller may be optionally provided. If they are nil, dummy barely-good-enough defaults will be used (these dummies are fine not actually used for much).

Types

This section is empty.

Jump to

Keyboard shortcuts

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