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

Method writeFixtureErrRun

executor_test.go:120–127  ·  view source on GitHub ↗

Helpers writeFixtureErrRun is a wrapper for writing the output of an error during the run phase of the task to a fixture file.

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

Source from the content-addressed store, hash-verified

118// writeFixtureErrRun is a wrapper for writing the output of an error during the
119// run phase of the task to a fixture file.
120func (tt *ExecutorTest) writeFixtureErrRun(
121 t *testing.T,
122 g *goldie.Goldie,
123 err error,
124) {
125 t.Helper()
126 tt.writeFixture(t, g, "err-run", []byte(err.Error()))
127}
128
129// writeFixtureStatus is a wrapper for writing the output of an error when
130// making an additional call to [task.Executor.Status] to a fixture file.

Callers 1

runMethod · 0.95

Calls 2

writeFixtureMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected