(name string)
| 252 | } |
| 253 | |
| 254 | func (p *panickingFileSystem) Stat(name string) (os.FileInfo, error) { |
| 255 | if name == p.panicOn { |
| 256 | panic("synthetic panic for test") |
| 257 | } |
| 258 | return p.MockFileSystem.Stat(name) |
| 259 | } |
| 260 | |
| 261 | // TestProcessFilesParallel_PanicSurfacedAsError ensures a panic during |
| 262 | // per-file analysis is recorded as an ErrorMessage on the FileOutput and |