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

Struct FormatterTest

formatter_test.go:27–35  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected