mocks

package
v0.0.0-...-903559f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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) LoadKeys

func (m *MockHsm) LoadKeys(arg0 []byte) error

LoadKeys mocks base method

func (*MockHsm) SignHeartbeat

func (m *MockHsm) SignHeartbeat(arg0 string, arg1 *types.Heartbeat) ([]byte, error)

SignHeartbeat mocks base method

func (*MockHsm) SignProposal

func (m *MockHsm) SignProposal(arg0 string, arg1 *types.Proposal) ([]byte, error)

SignProposal mocks base method

func (*MockHsm) SignVote

func (m *MockHsm) SignVote(arg0 string, arg1 *types.Vote) ([]byte, error)

SignVote 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL