code.vegaprotocol.io/vega@v0.79.0/datanode/api/mocks/epoch_service_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: code.vegaprotocol.io/vega/datanode/api (interfaces: EpochService)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	entities "code.vegaprotocol.io/vega/datanode/entities"
    12  	gomock "github.com/golang/mock/gomock"
    13  )
    14  
    15  // MockEpochService is a mock of EpochService interface.
    16  type MockEpochService struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockEpochServiceMockRecorder
    19  }
    20  
    21  // MockEpochServiceMockRecorder is the mock recorder for MockEpochService.
    22  type MockEpochServiceMockRecorder struct {
    23  	mock *MockEpochService
    24  }
    25  
    26  // NewMockEpochService creates a new mock instance.
    27  func NewMockEpochService(ctrl *gomock.Controller) *MockEpochService {
    28  	mock := &MockEpochService{ctrl: ctrl}
    29  	mock.recorder = &MockEpochServiceMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockEpochService) EXPECT() *MockEpochServiceMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // Get mocks base method.
    39  func (m *MockEpochService) Get(arg0 context.Context, arg1 uint64) (entities.Epoch, error) {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "Get", arg0, arg1)
    42  	ret0, _ := ret[0].(entities.Epoch)
    43  	ret1, _ := ret[1].(error)
    44  	return ret0, ret1
    45  }
    46  
    47  // Get indicates an expected call of Get.
    48  func (mr *MockEpochServiceMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockEpochService)(nil).Get), arg0, arg1)
    51  }
    52  
    53  // GetAll mocks base method.
    54  func (m *MockEpochService) GetAll(arg0 context.Context) ([]entities.Epoch, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "GetAll", arg0)
    57  	ret0, _ := ret[0].([]entities.Epoch)
    58  	ret1, _ := ret[1].(error)
    59  	return ret0, ret1
    60  }
    61  
    62  // GetAll indicates an expected call of GetAll.
    63  func (mr *MockEpochServiceMockRecorder) GetAll(arg0 interface{}) *gomock.Call {
    64  	mr.mock.ctrl.T.Helper()
    65  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAll", reflect.TypeOf((*MockEpochService)(nil).GetAll), arg0)
    66  }
    67  
    68  // GetByBlock mocks base method.
    69  func (m *MockEpochService) GetByBlock(arg0 context.Context, arg1 uint64) (entities.Epoch, error) {
    70  	m.ctrl.T.Helper()
    71  	ret := m.ctrl.Call(m, "GetByBlock", arg0, arg1)
    72  	ret0, _ := ret[0].(entities.Epoch)
    73  	ret1, _ := ret[1].(error)
    74  	return ret0, ret1
    75  }
    76  
    77  // GetByBlock indicates an expected call of GetByBlock.
    78  func (mr *MockEpochServiceMockRecorder) GetByBlock(arg0, arg1 interface{}) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetByBlock", reflect.TypeOf((*MockEpochService)(nil).GetByBlock), arg0, arg1)
    81  }
    82  
    83  // GetCurrent mocks base method.
    84  func (m *MockEpochService) GetCurrent(arg0 context.Context) (entities.Epoch, error) {
    85  	m.ctrl.T.Helper()
    86  	ret := m.ctrl.Call(m, "GetCurrent", arg0)
    87  	ret0, _ := ret[0].(entities.Epoch)
    88  	ret1, _ := ret[1].(error)
    89  	return ret0, ret1
    90  }
    91  
    92  // GetCurrent indicates an expected call of GetCurrent.
    93  func (mr *MockEpochServiceMockRecorder) GetCurrent(arg0 interface{}) *gomock.Call {
    94  	mr.mock.ctrl.T.Helper()
    95  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCurrent", reflect.TypeOf((*MockEpochService)(nil).GetCurrent), arg0)
    96  }