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

Method writeFixtureBuffer

task_test.go:106–113  ·  view source on GitHub ↗

writeFixtureBuffer is a wrapper for writing the main output of the task to a fixture file.

(
	t *testing.T,
	g *goldie.Goldie,
	buff bytes.Buffer,
)

Source from the content-addressed store, hash-verified

104// writeFixtureBuffer is a wrapper for writing the main output of the task to a
105// fixture file.
106func (tt *TaskTest) writeFixtureBuffer(
107 t *testing.T,
108 g *goldie.Goldie,
109 buff bytes.Buffer,
110) {
111 t.Helper()
112 tt.writeFixture(t, g, "", buff.Bytes())
113}
114
115// writeFixtureErrSetup is a wrapper for writing the output of an error during
116// the setup phase of the task to a fixture file.

Callers 2

runMethod · 0.80
runMethod · 0.80

Calls 1

writeFixtureMethod · 0.95

Tested by

no test coverage detected