Documentation ¶
Overview ¶
Package mockproposal is a generated GoMock package.
Index ¶
- type MockStore
- func (m *MockStore) AddRequest(arg0 context.Context, arg1 *proposal.Request) error
- func (m *MockStore) AddVote(arg0 context.Context, arg1 *proposal.Vote) error
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) Get(arg0 context.Context, arg1 go_libp2p_peer.ID) (*proposal.Request, error)
- func (m *MockStore) GetVotes(arg0 context.Context, arg1 go_libp2p_peer.ID) ([]*proposal.Vote, error)
- func (m *MockStore) List(arg0 context.Context) ([]*proposal.Request, error)
- func (m *MockStore) Remove(arg0 context.Context, arg1 go_libp2p_peer.ID) error
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) AddRequest(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) AddVote(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GetVotes(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) List(arg0 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Remove(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶
type MockStore struct {
// contains filtered or unexported fields
}
MockStore is a mock of Store interface
func NewMockStore ¶
func NewMockStore(ctrl *gomock.Controller) *MockStore
NewMockStore creates a new mock instance
func (*MockStore) AddRequest ¶
AddRequest mocks base method
func (*MockStore) EXPECT ¶
func (m *MockStore) EXPECT() *MockStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStore) GetVotes ¶
func (m *MockStore) GetVotes(arg0 context.Context, arg1 go_libp2p_peer.ID) ([]*proposal.Vote, error)
GetVotes mocks base method
type MockStoreMockRecorder ¶
type MockStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreMockRecorder is the mock recorder for MockStore
func (*MockStoreMockRecorder) AddRequest ¶
func (mr *MockStoreMockRecorder) AddRequest(arg0, arg1 interface{}) *gomock.Call
AddRequest indicates an expected call of AddRequest
func (*MockStoreMockRecorder) AddVote ¶
func (mr *MockStoreMockRecorder) AddVote(arg0, arg1 interface{}) *gomock.Call
AddVote indicates an expected call of AddVote
func (*MockStoreMockRecorder) Get ¶
func (mr *MockStoreMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockStoreMockRecorder) GetVotes ¶
func (mr *MockStoreMockRecorder) GetVotes(arg0, arg1 interface{}) *gomock.Call
GetVotes indicates an expected call of GetVotes
func (*MockStoreMockRecorder) List ¶
func (mr *MockStoreMockRecorder) List(arg0 interface{}) *gomock.Call
List indicates an expected call of List
func (*MockStoreMockRecorder) Remove ¶
func (mr *MockStoreMockRecorder) Remove(arg0, arg1 interface{}) *gomock.Call
Remove indicates an expected call of Remove
Click to show internal directories.
Click to hide internal directories.