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

Function WithPostProcessFn

task_test.go:224–226  ·  view source on GitHub ↗

WithPostProcessFn adds a [PostProcessFn] function to the test. Post-process functions are run on the output of the task before a fixture is created. This can be used to remove absolute paths, sort lines, etc. This can be called multiple times to add more than one post-process function.

(fn PostProcessFn)

Source from the content-addressed store, hash-verified

222// can be used to remove absolute paths, sort lines, etc. This can be called
223// multiple times to add more than one post-process function.
224func WithPostProcessFn(fn PostProcessFn) TestOption {
225 return &postProcessFnTestOption{fn: fn}
226}
227
228type postProcessFnTestOption struct {
229 fn PostProcessFn

Callers 5

TestConcurrencyFunction · 0.85
TestParamsFunction · 0.85
TestDepsFunction · 0.85
TestForDepsFunction · 0.85
TestFailfastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…