2021-07-28 23:14:50 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: github.com/tus/tusd/pkg/azurestore (interfaces: AzService,AzBlob)
|
|
|
|
|
|
|
|
// Package azurestore_test is a generated GoMock package.
|
|
|
|
package azurestore_test
|
|
|
|
|
|
|
|
import (
|
|
|
|
context "context"
|
|
|
|
io "io"
|
|
|
|
reflect "reflect"
|
2022-05-24 12:16:01 +00:00
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
|
|
|
azurestore "github.com/tus/tusd/pkg/azurestore"
|
2021-07-28 23:14:50 +00:00
|
|
|
)
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// MockAzService is a mock of AzService interface.
|
2021-07-28 23:14:50 +00:00
|
|
|
type MockAzService struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockAzServiceMockRecorder
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// MockAzServiceMockRecorder is the mock recorder for MockAzService.
|
2021-07-28 23:14:50 +00:00
|
|
|
type MockAzServiceMockRecorder struct {
|
|
|
|
mock *MockAzService
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// NewMockAzService creates a new mock instance.
|
2021-07-28 23:14:50 +00:00
|
|
|
func NewMockAzService(ctrl *gomock.Controller) *MockAzService {
|
|
|
|
mock := &MockAzService{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockAzServiceMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (m *MockAzService) EXPECT() *MockAzServiceMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// NewBlob mocks base method.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (m *MockAzService) NewBlob(arg0 context.Context, arg1 string) (azurestore.AzBlob, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "NewBlob", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(azurestore.AzBlob)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// NewBlob indicates an expected call of NewBlob.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (mr *MockAzServiceMockRecorder) NewBlob(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewBlob", reflect.TypeOf((*MockAzService)(nil).NewBlob), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// MockAzBlob is a mock of AzBlob interface.
|
2021-07-28 23:14:50 +00:00
|
|
|
type MockAzBlob struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockAzBlobMockRecorder
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// MockAzBlobMockRecorder is the mock recorder for MockAzBlob.
|
2021-07-28 23:14:50 +00:00
|
|
|
type MockAzBlobMockRecorder struct {
|
|
|
|
mock *MockAzBlob
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// NewMockAzBlob creates a new mock instance.
|
2021-07-28 23:14:50 +00:00
|
|
|
func NewMockAzBlob(ctrl *gomock.Controller) *MockAzBlob {
|
|
|
|
mock := &MockAzBlob{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockAzBlobMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (m *MockAzBlob) EXPECT() *MockAzBlobMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// Commit mocks base method.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (m *MockAzBlob) Commit(arg0 context.Context) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Commit", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// Commit indicates an expected call of Commit.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (mr *MockAzBlobMockRecorder) Commit(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Commit", reflect.TypeOf((*MockAzBlob)(nil).Commit), arg0)
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// Delete mocks base method.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (m *MockAzBlob) Delete(arg0 context.Context) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Delete", arg0)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// Delete indicates an expected call of Delete.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (mr *MockAzBlobMockRecorder) Delete(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAzBlob)(nil).Delete), arg0)
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// Download mocks base method.
|
|
|
|
func (m *MockAzBlob) Download(arg0 context.Context) (io.ReadCloser, error) {
|
2021-07-28 23:14:50 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Download", arg0)
|
2022-05-24 12:16:01 +00:00
|
|
|
ret0, _ := ret[0].(io.ReadCloser)
|
2021-07-28 23:14:50 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// Download indicates an expected call of Download.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (mr *MockAzBlobMockRecorder) Download(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Download", reflect.TypeOf((*MockAzBlob)(nil).Download), arg0)
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// GetOffset mocks base method.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (m *MockAzBlob) GetOffset(arg0 context.Context) (int64, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "GetOffset", arg0)
|
|
|
|
ret0, _ := ret[0].(int64)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// GetOffset indicates an expected call of GetOffset.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (mr *MockAzBlobMockRecorder) GetOffset(arg0 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOffset", reflect.TypeOf((*MockAzBlob)(nil).GetOffset), arg0)
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// Upload mocks base method.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (m *MockAzBlob) Upload(arg0 context.Context, arg1 io.ReadSeeker) error {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Upload", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:16:01 +00:00
|
|
|
// Upload indicates an expected call of Upload.
|
2021-07-28 23:14:50 +00:00
|
|
|
func (mr *MockAzBlobMockRecorder) Upload(arg0, arg1 interface{}) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upload", reflect.TypeOf((*MockAzBlob)(nil).Upload), arg0, arg1)
|
|
|
|
}
|