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

Method writeFixtureErrSetup

task_test.go:117–124  ·  view source on GitHub ↗

writeFixtureErrSetup is a wrapper for writing the output of an error during the setup phase of the task to a fixture file.

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

Source from the content-addressed store, hash-verified

115// writeFixtureErrSetup is a wrapper for writing the output of an error during
116// the setup phase of the task to a fixture file.
117func (tt *TaskTest) writeFixtureErrSetup(
118 t *testing.T,
119 g *goldie.Goldie,
120 err error,
121) {
122 t.Helper()
123 tt.writeFixture(t, g, "err-setup", []byte(err.Error()))
124}
125
126// Functional options
127

Callers 2

runMethod · 0.80
runMethod · 0.80

Calls 2

writeFixtureMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected