A FormatterTest is a test wrapper around a [task.Executor] to make it easy to write tests for the task formatter. See [NewFormatterTest] for information on creating and running FormatterTests. These tests use fixture files to assert whether the result of the output is correct. If Task's behavior has
| 25 | // Task's behavior has been changed, the fixture files can be updated by |
| 26 | // running `task gen:fixtures`. |
| 27 | FormatterTest struct { |
| 28 | TaskTest |
| 29 | task string |
| 30 | vars map[string]any |
| 31 | executorOpts []task.ExecutorOption |
| 32 | listOptions task.ListOptions |
| 33 | wantSetupError bool |
| 34 | wantListError bool |
| 35 | } |
| 36 | ) |
| 37 | |
| 38 | // NewFormatterTest sets up a new [task.Executor] with the given options and |
nothing calls this directly
no outgoing calls
no test coverage detected