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, )
| 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. |
| 131 | func (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. |