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)
| 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. |
| 224 | func WithPostProcessFn(fn PostProcessFn) TestOption { |
| 225 | return &postProcessFnTestOption{fn: fn} |
| 226 | } |
| 227 | |
| 228 | type postProcessFnTestOption struct { |
| 229 | fn PostProcessFn |
no outgoing calls
no test coverage detected
searching dependent graphs…