Documentation ¶
Overview ¶
Package mock_state is a generated GoMock package.
Index ¶
- type MockFactory
- func (m *MockFactory) Balance(arg0 string) (*big.Int, error)
- func (m *MockFactory) Candidates() (uint64, []*state.Candidate)
- func (m *MockFactory) CommitStateChanges(arg0 uint64, arg1 []*action.Transfer, arg2 []*action.Vote) error
- func (m *MockFactory) CreateState(arg0 string, arg1 uint64) (*state.State, error)
- func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
- func (m *MockFactory) Nonce(arg0 string) (uint64, error)
- func (m *MockFactory) RootHash() common.Hash32B
- func (m *MockFactory) State(arg0 string) (*state.State, error)
- type MockFactoryMockRecorder
- func (mr *MockFactoryMockRecorder) Balance(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) Candidates() *gomock.Call
- func (mr *MockFactoryMockRecorder) CommitStateChanges(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) CreateState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) Nonce(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) RootHash() *gomock.Call
- func (mr *MockFactoryMockRecorder) State(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFactory ¶
type MockFactory struct {
// contains filtered or unexported fields
}
MockFactory is a mock of Factory interface
func NewMockFactory ¶
func NewMockFactory(ctrl *gomock.Controller) *MockFactory
NewMockFactory creates a new mock instance
func (*MockFactory) Balance ¶
func (m *MockFactory) Balance(arg0 string) (*big.Int, error)
Balance mocks base method
func (*MockFactory) Candidates ¶
func (m *MockFactory) Candidates() (uint64, []*state.Candidate)
Candidates mocks base method
func (*MockFactory) CommitStateChanges ¶
func (m *MockFactory) CommitStateChanges(arg0 uint64, arg1 []*action.Transfer, arg2 []*action.Vote) error
CommitStateChanges mocks base method
func (*MockFactory) CreateState ¶
CreateState mocks base method
func (*MockFactory) EXPECT ¶
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFactory) Nonce ¶
func (m *MockFactory) Nonce(arg0 string) (uint64, error)
Nonce mocks base method
func (*MockFactory) RootHash ¶
func (m *MockFactory) RootHash() common.Hash32B
RootHash mocks base method
type MockFactoryMockRecorder ¶
type MockFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryMockRecorder is the mock recorder for MockFactory
func (*MockFactoryMockRecorder) Balance ¶
func (mr *MockFactoryMockRecorder) Balance(arg0 interface{}) *gomock.Call
Balance indicates an expected call of Balance
func (*MockFactoryMockRecorder) Candidates ¶
func (mr *MockFactoryMockRecorder) Candidates() *gomock.Call
Candidates indicates an expected call of Candidates
func (*MockFactoryMockRecorder) CommitStateChanges ¶
func (mr *MockFactoryMockRecorder) CommitStateChanges(arg0, arg1, arg2 interface{}) *gomock.Call
CommitStateChanges indicates an expected call of CommitStateChanges
func (*MockFactoryMockRecorder) CreateState ¶
func (mr *MockFactoryMockRecorder) CreateState(arg0, arg1 interface{}) *gomock.Call
CreateState indicates an expected call of CreateState
func (*MockFactoryMockRecorder) Nonce ¶
func (mr *MockFactoryMockRecorder) Nonce(arg0 interface{}) *gomock.Call
Nonce indicates an expected call of Nonce
func (*MockFactoryMockRecorder) RootHash ¶
func (mr *MockFactoryMockRecorder) RootHash() *gomock.Call
RootHash indicates an expected call of RootHash
func (*MockFactoryMockRecorder) State ¶
func (mr *MockFactoryMockRecorder) State(arg0 interface{}) *gomock.Call
State indicates an expected call of State