MCPcopy Create free account
hub / github.com/go-task/task / ExecutorTest

Struct ExecutorTest

executor_test.go:31–40  ·  view source on GitHub ↗

A ExecutorTest is a test wrapper around a [task.Executor] to make it easy to write tests for tasks. See [NewExecutorTest] for information on creating and running ExecutorTests. These tests use fixture files to assert whether the result of a task is correct. If Task's behavior has been changed, the f

Source from the content-addressed store, hash-verified

29 // been changed, the fixture files can be updated by running `task
30 // gen:fixtures`.
31 ExecutorTest struct {
32 TaskTest
33 task string
34 vars map[string]any
35 input string
36 executorOpts []task.ExecutorOption
37 wantSetupError bool
38 wantRunError bool
39 wantStatusError bool
40 }
41)
42
43// NewExecutorTest sets up a new [task.Executor] with the given options and runs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected