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

Method writeFixtureStatus

executor_test.go:131–138  ·  view source on GitHub ↗

writeFixtureStatus is a wrapper for writing the output of an error when making an additional call to [task.Executor.Status] to a fixture file.

(
	t *testing.T,
	g *goldie.Goldie,
	status string,
)

Source from the content-addressed store, hash-verified

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.
131func (tt *ExecutorTest) writeFixtureStatus(
132 t *testing.T,
133 g *goldie.Goldie,
134 status string,
135) {
136 t.Helper()
137 tt.writeFixture(t, g, "err-status", []byte(status))
138}
139
140// run is the main function for running the test. It sets up the task executor,
141// runs the task, and writes the output to a fixture file.

Callers 1

runMethod · 0.95

Calls 1

writeFixtureMethod · 0.80

Tested by

no test coverage detected