(base afero.Fs, intercept func(call, file string) error)
| 39 | } |
| 40 | |
| 41 | func newTestFs(base afero.Fs, intercept func(call, file string) error) *testFs { |
| 42 | return &testFs{ |
| 43 | Fs: base, |
| 44 | intercept: intercept, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func (fs *testFs) Open(name string) (afero.File, error) { |
| 49 | if err := fs.intercept("open", name); err != nil { |
no outgoing calls
no test coverage detected