()
| 107 | } |
| 108 | |
| 109 | func (m *mockFile) Stat() (os.FileInfo, error) { |
| 110 | args := m.Called() |
| 111 | |
| 112 | info, ok := args.Get(0).(os.FileInfo) |
| 113 | if info != nil && !ok { |
| 114 | panic(errAssertion) |
| 115 | } |
| 116 | |
| 117 | return info, args.Error(1) |
| 118 | } |
| 119 | |
| 120 | func (m *mockFile) Sync() error { |
| 121 | return m.Called().Error(0) |