NewDownloaderUploader creates a new instance of DownloaderUploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
(t mockConstructorTestingTNewDownloaderUploader)
| 114 | |
| 115 | // NewDownloaderUploader creates a new instance of DownloaderUploader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. |
| 116 | func NewDownloaderUploader(t mockConstructorTestingTNewDownloaderUploader) *DownloaderUploader { |
| 117 | mock := &DownloaderUploader{} |
| 118 | mock.Mock.Test(t) |
| 119 | |
| 120 | t.Cleanup(func() { mock.AssertExpectations(t) }) |
| 121 | |
| 122 | return mock |
| 123 | } |