github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/test/mock_depends_conf_storage/storage.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ../depends/conf/storage/storage.go
     3  
     4  // Package mock_conf_storage is a generated GoMock package.
     5  package mock_conf_storage
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  
    12  	storage "github.com/machinefi/w3bstream/pkg/depends/conf/storage"
    13  )
    14  
    15  // MockStorageOperations is a mock of StorageOperations interface.
    16  type MockStorageOperations struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockStorageOperationsMockRecorder
    19  }
    20  
    21  // MockStorageOperationsMockRecorder is the mock recorder for MockStorageOperations.
    22  type MockStorageOperationsMockRecorder struct {
    23  	mock *MockStorageOperations
    24  }
    25  
    26  // NewMockStorageOperations creates a new mock instance.
    27  func NewMockStorageOperations(ctrl *gomock.Controller) *MockStorageOperations {
    28  	mock := &MockStorageOperations{ctrl: ctrl}
    29  	mock.recorder = &MockStorageOperationsMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockStorageOperations) EXPECT() *MockStorageOperationsMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Delete mocks base method.
    39  func (m *MockStorageOperations) Delete(key string) error {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "Delete", key)
    42  	ret0, _ := ret[0].(error)
    43  	return ret0
    44  }
    45  
    46  // Delete indicates an expected call of Delete.
    47  func (mr *MockStorageOperationsMockRecorder) Delete(key interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockStorageOperations)(nil).Delete), key)
    50  }
    51  
    52  // Read mocks base method.
    53  func (m *MockStorageOperations) Read(key string, chk ...storage.HmacAlgType) ([]byte, []byte, error) {
    54  	m.ctrl.T.Helper()
    55  	varargs := []interface{}{key}
    56  	for _, a := range chk {
    57  		varargs = append(varargs, a)
    58  	}
    59  	ret := m.ctrl.Call(m, "Read", varargs...)
    60  	ret0, _ := ret[0].([]byte)
    61  	ret1, _ := ret[1].([]byte)
    62  	ret2, _ := ret[2].(error)
    63  	return ret0, ret1, ret2
    64  }
    65  
    66  // Read indicates an expected call of Read.
    67  func (mr *MockStorageOperationsMockRecorder) Read(key interface{}, chk ...interface{}) *gomock.Call {
    68  	mr.mock.ctrl.T.Helper()
    69  	varargs := append([]interface{}{key}, chk...)
    70  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockStorageOperations)(nil).Read), varargs...)
    71  }
    72  
    73  // Type mocks base method.
    74  func (m *MockStorageOperations) Type() storage.StorageType {
    75  	m.ctrl.T.Helper()
    76  	ret := m.ctrl.Call(m, "Type")
    77  	ret0, _ := ret[0].(storage.StorageType)
    78  	return ret0
    79  }
    80  
    81  // Type indicates an expected call of Type.
    82  func (mr *MockStorageOperationsMockRecorder) Type() *gomock.Call {
    83  	mr.mock.ctrl.T.Helper()
    84  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Type", reflect.TypeOf((*MockStorageOperations)(nil).Type))
    85  }
    86  
    87  // Upload mocks base method.
    88  func (m *MockStorageOperations) Upload(key string, file []byte, chk ...storage.HmacAlgType) error {
    89  	m.ctrl.T.Helper()
    90  	varargs := []interface{}{key, file}
    91  	for _, a := range chk {
    92  		varargs = append(varargs, a)
    93  	}
    94  	ret := m.ctrl.Call(m, "Upload", varargs...)
    95  	ret0, _ := ret[0].(error)
    96  	return ret0
    97  }
    98  
    99  // Upload indicates an expected call of Upload.
   100  func (mr *MockStorageOperationsMockRecorder) Upload(key, file interface{}, chk ...interface{}) *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	varargs := append([]interface{}{key, file}, chk...)
   103  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Upload", reflect.TypeOf((*MockStorageOperations)(nil).Upload), varargs...)
   104  }
   105  
   106  // MockStorageOperationsWithValidation is a mock of StorageOperationsWithValidation interface.
   107  type MockStorageOperationsWithValidation struct {
   108  	ctrl     *gomock.Controller
   109  	recorder *MockStorageOperationsWithValidationMockRecorder
   110  }
   111  
   112  // MockStorageOperationsWithValidationMockRecorder is the mock recorder for MockStorageOperationsWithValidation.
   113  type MockStorageOperationsWithValidationMockRecorder struct {
   114  	mock *MockStorageOperationsWithValidation
   115  }
   116  
   117  // NewMockStorageOperationsWithValidation creates a new mock instance.
   118  func NewMockStorageOperationsWithValidation(ctrl *gomock.Controller) *MockStorageOperationsWithValidation {
   119  	mock := &MockStorageOperationsWithValidation{ctrl: ctrl}
   120  	mock.recorder = &MockStorageOperationsWithValidationMockRecorder{mock}
   121  	return mock
   122  }
   123  
   124  // EXPECT returns an object that allows the caller to indicate expected use.
   125  func (m *MockStorageOperationsWithValidation) EXPECT() *MockStorageOperationsWithValidationMockRecorder {
   126  	return m.recorder
   127  }
   128  
   129  // Validate mocks base method.
   130  func (m *MockStorageOperationsWithValidation) Validate(data []byte, sum string, chk ...storage.HmacAlgType) bool {
   131  	m.ctrl.T.Helper()
   132  	varargs := []interface{}{data, sum}
   133  	for _, a := range chk {
   134  		varargs = append(varargs, a)
   135  	}
   136  	ret := m.ctrl.Call(m, "Validate", varargs...)
   137  	ret0, _ := ret[0].(bool)
   138  	return ret0
   139  }
   140  
   141  // Validate indicates an expected call of Validate.
   142  func (mr *MockStorageOperationsWithValidationMockRecorder) Validate(data, sum interface{}, chk ...interface{}) *gomock.Call {
   143  	mr.mock.ctrl.T.Helper()
   144  	varargs := append([]interface{}{data, sum}, chk...)
   145  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockStorageOperationsWithValidation)(nil).Validate), varargs...)
   146  }