Helpers writeFixtureErrList is a wrapper for writing the output of an error when running the formatter to a fixture file.
( t *testing.T, g *goldie.Goldie, err error, )
| 99 | // writeFixtureErrList is a wrapper for writing the output of an error when |
| 100 | // running the formatter to a fixture file. |
| 101 | func (tt *FormatterTest) writeFixtureErrList( |
| 102 | t *testing.T, |
| 103 | g *goldie.Goldie, |
| 104 | err error, |
| 105 | ) { |
| 106 | t.Helper() |
| 107 | tt.writeFixture(t, g, "err-list", []byte(err.Error())) |
| 108 | } |
| 109 | |
| 110 | // run is the main function for running the test. It sets up the task executor, |
| 111 | // runs the task, and writes the output to a fixture file. |
no test coverage detected