Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockHsm
- func (m *MockHsm) EXPECT() *MockHsmMockRecorder
- func (m *MockHsm) GenerateKey() (validator.Ed25519KeyPair, error)
- func (m *MockHsm) LoadKeys(arg0 []byte) error
- func (m *MockHsm) SignHeartbeat(arg0 string, arg1 *types.Heartbeat) ([]byte, error)
- func (m *MockHsm) SignProposal(arg0 string, arg1 *types.Proposal) ([]byte, error)
- func (m *MockHsm) SignVote(arg0 string, arg1 *types.Vote) ([]byte, error)
- type MockHsmMockRecorder
- func (mr *MockHsmMockRecorder) GenerateKey() *gomock.Call
- func (mr *MockHsmMockRecorder) LoadKeys(arg0 interface{}) *gomock.Call
- func (mr *MockHsmMockRecorder) SignHeartbeat(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHsmMockRecorder) SignProposal(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHsmMockRecorder) SignVote(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHsm ¶
type MockHsm struct {
// contains filtered or unexported fields
}
MockHsm is a mock of Hsm interface
func NewMockHsm ¶
func NewMockHsm(ctrl *gomock.Controller) *MockHsm
NewMockHsm creates a new mock instance
func (*MockHsm) EXPECT ¶
func (m *MockHsm) EXPECT() *MockHsmMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockHsm) GenerateKey ¶
func (m *MockHsm) GenerateKey() (validator.Ed25519KeyPair, error)
GenerateKey mocks base method
func (*MockHsm) SignHeartbeat ¶
SignHeartbeat mocks base method
func (*MockHsm) SignProposal ¶
SignProposal mocks base method
type MockHsmMockRecorder ¶
type MockHsmMockRecorder struct {
// contains filtered or unexported fields
}
MockHsmMockRecorder is the mock recorder for MockHsm
func (*MockHsmMockRecorder) GenerateKey ¶
func (mr *MockHsmMockRecorder) GenerateKey() *gomock.Call
GenerateKey indicates an expected call of GenerateKey
func (*MockHsmMockRecorder) LoadKeys ¶
func (mr *MockHsmMockRecorder) LoadKeys(arg0 interface{}) *gomock.Call
LoadKeys indicates an expected call of LoadKeys
func (*MockHsmMockRecorder) SignHeartbeat ¶
func (mr *MockHsmMockRecorder) SignHeartbeat(arg0, arg1 interface{}) *gomock.Call
SignHeartbeat indicates an expected call of SignHeartbeat
func (*MockHsmMockRecorder) SignProposal ¶
func (mr *MockHsmMockRecorder) SignProposal(arg0, arg1 interface{}) *gomock.Call
SignProposal indicates an expected call of SignProposal
func (*MockHsmMockRecorder) SignVote ¶
func (mr *MockHsmMockRecorder) SignVote(arg0, arg1 interface{}) *gomock.Call
SignVote indicates an expected call of SignVote
Click to show internal directories.
Click to hide internal directories.