| 106 | } |
| 107 | |
| 108 | type MockFileSystem struct { |
| 109 | ReadFileFunc func(filename string) ([]byte, error) |
| 110 | WriteFileFunc func(filename string, data []byte, perm os.FileMode) error |
| 111 | MkdirAllFunc func(path string, perm os.FileMode) error |
| 112 | StatFunc func(name string) (os.FileInfo, error) |
| 113 | } |
| 114 | |
| 115 | func (m *MockFileSystem) ReadFile(filename string) ([]byte, error) { |
| 116 | if m.ReadFileFunc != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected