github.com/iotexproject/iotex-core@v1.14.1-rc1/test/mock/mock_actioniterator/mock_actioniterator.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ./actpool/actioniterator/actioniterator.go
     3  
     4  // Package mock_actioniterator is a generated GoMock package.
     5  package mock_actioniterator
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	action "github.com/iotexproject/iotex-core/action"
    12  )
    13  
    14  // MockActionIterator is a mock of ActionIterator interface.
    15  type MockActionIterator struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockActionIteratorMockRecorder
    18  }
    19  
    20  // MockActionIteratorMockRecorder is the mock recorder for MockActionIterator.
    21  type MockActionIteratorMockRecorder struct {
    22  	mock *MockActionIterator
    23  }
    24  
    25  // NewMockActionIterator creates a new mock instance.
    26  func NewMockActionIterator(ctrl *gomock.Controller) *MockActionIterator {
    27  	mock := &MockActionIterator{ctrl: ctrl}
    28  	mock.recorder = &MockActionIteratorMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockActionIterator) EXPECT() *MockActionIteratorMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Next mocks base method.
    38  func (m *MockActionIterator) Next() (*action.SealedEnvelope, bool) {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "Next")
    41  	ret0, _ := ret[0].(*action.SealedEnvelope)
    42  	ret1, _ := ret[1].(bool)
    43  	return ret0, ret1
    44  }
    45  
    46  // Next indicates an expected call of Next.
    47  func (mr *MockActionIteratorMockRecorder) Next() *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockActionIterator)(nil).Next))
    50  }
    51  
    52  // PopAccount mocks base method.
    53  func (m *MockActionIterator) PopAccount() {
    54  	m.ctrl.T.Helper()
    55  	m.ctrl.Call(m, "PopAccount")
    56  }
    57  
    58  // PopAccount indicates an expected call of PopAccount.
    59  func (mr *MockActionIteratorMockRecorder) PopAccount() *gomock.Call {
    60  	mr.mock.ctrl.T.Helper()
    61  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PopAccount", reflect.TypeOf((*MockActionIterator)(nil).PopAccount))
    62  }