-
Notifications
You must be signed in to change notification settings - Fork 5
/
mock_storage.go
85 lines (70 loc) · 2.69 KB
/
mock_storage.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/decentraland/content-service/storage (interfaces: Storage)
// Package mocks is a generated GoMock package.
package mocks
import (
io "io"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockStorage is a mock of Storage interface
type MockStorage struct {
ctrl *gomock.Controller
recorder *MockStorageMockRecorder
}
// MockStorageMockRecorder is the mock recorder for MockStorage
type MockStorageMockRecorder struct {
mock *MockStorage
}
// NewMockStorage creates a new mock instance
func NewMockStorage(ctrl *gomock.Controller) *MockStorage {
mock := &MockStorage{ctrl: ctrl}
mock.recorder = &MockStorageMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockStorage) EXPECT() *MockStorageMockRecorder {
return m.recorder
}
// DownloadFile mocks base method
func (m *MockStorage) DownloadFile(arg0, arg1 string) error {
ret := m.ctrl.Call(m, "DownloadFile", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// DownloadFile indicates an expected call of DownloadFile
func (mr *MockStorageMockRecorder) DownloadFile(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadFile", reflect.TypeOf((*MockStorage)(nil).DownloadFile), arg0, arg1)
}
// FileSize mocks base method
func (m *MockStorage) FileSize(arg0 string) (int64, error) {
ret := m.ctrl.Call(m, "FileSize", arg0)
ret0, _ := ret[0].(int64)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// FileSize indicates an expected call of FileSize
func (mr *MockStorageMockRecorder) FileSize(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FileSize", reflect.TypeOf((*MockStorage)(nil).FileSize), arg0)
}
// GetFile mocks base method
func (m *MockStorage) GetFile(arg0 string) string {
ret := m.ctrl.Call(m, "GetFile", arg0)
ret0, _ := ret[0].(string)
return ret0
}
// GetFile indicates an expected call of GetFile
func (mr *MockStorageMockRecorder) GetFile(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFile", reflect.TypeOf((*MockStorage)(nil).GetFile), arg0)
}
// SaveFile mocks base method
func (m *MockStorage) SaveFile(arg0 string, arg1 io.Reader, arg2 string) (string, error) {
ret := m.ctrl.Call(m, "SaveFile", arg0, arg1, arg2)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SaveFile indicates an expected call of SaveFile
func (mr *MockStorageMockRecorder) SaveFile(arg0, arg1, arg2 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SaveFile", reflect.TypeOf((*MockStorage)(nil).SaveFile), arg0, arg1, arg2)
}