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, )
| 115 | // writeFixtureErrSetup is a wrapper for writing the output of an error during |
| 116 | // the setup phase of the task to a fixture file. |
| 117 | func (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 |
no test coverage detected