MCPcopy
hub / github.com/go-task/task / writeFixtureErrList

Method writeFixtureErrList

formatter_test.go:101–108  ·  view source on GitHub ↗

Helpers writeFixtureErrList is a wrapper for writing the output of an error when running the formatter to a fixture file.

(
	t *testing.T,
	g *goldie.Goldie,
	err error,
)

Source from the content-addressed store, hash-verified

99// writeFixtureErrList is a wrapper for writing the output of an error when
100// running the formatter to a fixture file.
101func (tt *FormatterTest) writeFixtureErrList(
102 t *testing.T,
103 g *goldie.Goldie,
104 err error,
105) {
106 t.Helper()
107 tt.writeFixture(t, g, "err-list", []byte(err.Error()))
108}
109
110// run is the main function for running the test. It sets up the task executor,
111// runs the task, and writes the output to a fixture file.

Callers 1

runMethod · 0.95

Calls 2

writeFixtureMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected