-
Notifications
You must be signed in to change notification settings - Fork 7
/
mockCompressor.go
127 lines (106 loc) · 4.25 KB
/
mockCompressor.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Code generated by MockGen. DO NOT EDIT.
// Source: ./compressor.go
// Package compressor is a generated GoMock package.
package compressor
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockCompressor is a mock of Compressor interface.
type MockCompressor struct {
ctrl *gomock.Controller
recorder *MockCompressorMockRecorder
}
// MockCompressorMockRecorder is the mock recorder for MockCompressor.
type MockCompressorMockRecorder struct {
mock *MockCompressor
}
// NewMockCompressor creates a new mock instance.
func NewMockCompressor(ctrl *gomock.Controller) *MockCompressor {
mock := &MockCompressor{ctrl: ctrl}
mock.recorder = &MockCompressorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCompressor) EXPECT() *MockCompressorMockRecorder {
return m.recorder
}
// CompressDirectory mocks base method.
func (m *MockCompressor) CompressDirectory(source, target string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CompressDirectory", source, target)
ret0, _ := ret[0].(error)
return ret0
}
// CompressDirectory indicates an expected call of CompressDirectory.
func (mr *MockCompressorMockRecorder) CompressDirectory(source, target interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompressDirectory", reflect.TypeOf((*MockCompressor)(nil).CompressDirectory), source, target)
}
// UncompressFromUrl mocks base method.
func (m *MockCompressor) UncompressFromUrl(url string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UncompressFromUrl", url)
ret0, _ := ret[0].(error)
return ret0
}
// UncompressFromUrl indicates an expected call of UncompressFromUrl.
func (mr *MockCompressorMockRecorder) UncompressFromUrl(url interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UncompressFromUrl", reflect.TypeOf((*MockCompressor)(nil).UncompressFromUrl), url)
}
// MockZipStrategy is a mock of ZipStrategy interface.
type MockZipStrategy struct {
ctrl *gomock.Controller
recorder *MockZipStrategyMockRecorder
}
// MockZipStrategyMockRecorder is the mock recorder for MockZipStrategy.
type MockZipStrategyMockRecorder struct {
mock *MockZipStrategy
}
// NewMockZipStrategy creates a new mock instance.
func NewMockZipStrategy(ctrl *gomock.Controller) *MockZipStrategy {
mock := &MockZipStrategy{ctrl: ctrl}
mock.recorder = &MockZipStrategyMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockZipStrategy) EXPECT() *MockZipStrategyMockRecorder {
return m.recorder
}
// CompressDirectory mocks base method.
func (m *MockZipStrategy) CompressDirectory(source, target string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CompressDirectory", source, target)
ret0, _ := ret[0].(error)
return ret0
}
// CompressDirectory indicates an expected call of CompressDirectory.
func (mr *MockZipStrategyMockRecorder) CompressDirectory(source, target interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CompressDirectory", reflect.TypeOf((*MockZipStrategy)(nil).CompressDirectory), source, target)
}
// GetExtension mocks base method.
func (m *MockZipStrategy) GetExtension() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetExtension")
ret0, _ := ret[0].(string)
return ret0
}
// GetExtension indicates an expected call of GetExtension.
func (mr *MockZipStrategyMockRecorder) GetExtension() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExtension", reflect.TypeOf((*MockZipStrategy)(nil).GetExtension))
}
// UnCompressDirectory mocks base method.
func (m *MockZipStrategy) UnCompressDirectory(source, target string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UnCompressDirectory", source, target)
ret0, _ := ret[0].(error)
return ret0
}
// UnCompressDirectory indicates an expected call of UnCompressDirectory.
func (mr *MockZipStrategyMockRecorder) UnCompressDirectory(source, target interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnCompressDirectory", reflect.TypeOf((*MockZipStrategy)(nil).UnCompressDirectory), source, target)
}