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
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected