github.com/iotexproject/iotex-core@v1.14.1-rc1/consensus/consensusfsm/mock_endorsement_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: ./consensus/consensusfsm/endorsement.go
     3  
     4  // Package consensusfsm is a generated GoMock package.
     5  package consensusfsm
     6  
     7  import (
     8  	gomock "github.com/golang/mock/gomock"
     9  	reflect "reflect"
    10  )
    11  
    12  // MockEndorsement is a mock of Endorsement interface
    13  type MockEndorsement struct {
    14  	ctrl     *gomock.Controller
    15  	recorder *MockEndorsementMockRecorder
    16  }
    17  
    18  // MockEndorsementMockRecorder is the mock recorder for MockEndorsement
    19  type MockEndorsementMockRecorder struct {
    20  	mock *MockEndorsement
    21  }
    22  
    23  // NewMockEndorsement creates a new mock instance
    24  func NewMockEndorsement(ctrl *gomock.Controller) *MockEndorsement {
    25  	mock := &MockEndorsement{ctrl: ctrl}
    26  	mock.recorder = &MockEndorsementMockRecorder{mock}
    27  	return mock
    28  }
    29  
    30  // EXPECT returns an object that allows the caller to indicate expected use
    31  func (m *MockEndorsement) EXPECT() *MockEndorsementMockRecorder {
    32  	return m.recorder
    33  }
    34  
    35  // Hash mocks base method
    36  func (m *MockEndorsement) Hash() []byte {
    37  	ret := m.ctrl.Call(m, "Hash")
    38  	ret0, _ := ret[0].([]byte)
    39  	return ret0
    40  }
    41  
    42  // Hash indicates an expected call of Hash
    43  func (mr *MockEndorsementMockRecorder) Hash() *gomock.Call {
    44  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Hash", reflect.TypeOf((*MockEndorsement)(nil).Hash))
    45  }
    46  
    47  // Height mocks base method
    48  func (m *MockEndorsement) Height() uint64 {
    49  	ret := m.ctrl.Call(m, "Height")
    50  	ret0, _ := ret[0].(uint64)
    51  	return ret0
    52  }
    53  
    54  // Height indicates an expected call of Height
    55  func (mr *MockEndorsementMockRecorder) Height() *gomock.Call {
    56  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Height", reflect.TypeOf((*MockEndorsement)(nil).Height))
    57  }
    58  
    59  // Round mocks base method
    60  func (m *MockEndorsement) Round() uint32 {
    61  	ret := m.ctrl.Call(m, "Round")
    62  	ret0, _ := ret[0].(uint32)
    63  	return ret0
    64  }
    65  
    66  // Round indicates an expected call of Round
    67  func (mr *MockEndorsementMockRecorder) Round() *gomock.Call {
    68  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Round", reflect.TypeOf((*MockEndorsement)(nil).Round))
    69  }
    70  
    71  // Endorser mocks base method
    72  func (m *MockEndorsement) Endorser() string {
    73  	ret := m.ctrl.Call(m, "Endorser")
    74  	ret0, _ := ret[0].(string)
    75  	return ret0
    76  }
    77  
    78  // Endorser indicates an expected call of Endorser
    79  func (mr *MockEndorsementMockRecorder) Endorser() *gomock.Call {
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Endorser", reflect.TypeOf((*MockEndorsement)(nil).Endorser))
    81  }
    82  
    83  // Serialize mocks base method
    84  func (m *MockEndorsement) Serialize() ([]byte, error) {
    85  	ret := m.ctrl.Call(m, "Serialize")
    86  	ret0, _ := ret[0].([]byte)
    87  	ret1, _ := ret[1].(error)
    88  	return ret0, ret1
    89  }
    90  
    91  // Serialize indicates an expected call of Serialize
    92  func (mr *MockEndorsementMockRecorder) Serialize() *gomock.Call {
    93  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Serialize", reflect.TypeOf((*MockEndorsement)(nil).Serialize))
    94  }
    95  
    96  // Deserialize mocks base method
    97  func (m *MockEndorsement) Deserialize(arg0 []byte) error {
    98  	ret := m.ctrl.Call(m, "Deserialize", arg0)
    99  	ret0, _ := ret[0].(error)
   100  	return ret0
   101  }
   102  
   103  // Deserialize indicates an expected call of Deserialize
   104  func (mr *MockEndorsementMockRecorder) Deserialize(arg0 interface{}) *gomock.Call {
   105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deserialize", reflect.TypeOf((*MockEndorsement)(nil).Deserialize), arg0)
   106  }