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) CachedState(arg0 string) (*state.State, error)
- func (m *MockFactory) Candidates() (uint64, []*state.Candidate)
- func (m *MockFactory) CandidatesByHeight(arg0 uint64) ([]*state.Candidate, error)
- func (m *MockFactory) CommitStateChanges(arg0 uint64, arg1 []*action.Transfer, arg2 []*action.Vote, ...) error
- func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
- func (m *MockFactory) GetCode(arg0 hash.AddrHash) ([]byte, error)
- func (m *MockFactory) GetCodeHash(arg0 hash.AddrHash) (hash.Hash32B, error)
- func (m *MockFactory) GetContractState(arg0 hash.AddrHash, arg1 hash.Hash32B) (hash.Hash32B, error)
- func (m *MockFactory) Height() (uint64, error)
- func (m *MockFactory) LoadOrCreateState(arg0 string, arg1 uint64) (*state.State, error)
- func (m *MockFactory) Nonce(arg0 string) (uint64, error)
- func (m *MockFactory) RootHash() hash.Hash32B
- func (m *MockFactory) SetCode(arg0 hash.AddrHash, arg1 []byte) error
- func (m *MockFactory) SetContractState(arg0 hash.AddrHash, arg1, arg2 hash.Hash32B) error
- func (m *MockFactory) Start(arg0 context.Context) error
- func (m *MockFactory) State(arg0 string) (*state.State, error)
- func (m *MockFactory) Stop(arg0 context.Context) error
- type MockFactoryMockRecorder
- func (mr *MockFactoryMockRecorder) Balance(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) CachedState(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) Candidates() *gomock.Call
- func (mr *MockFactoryMockRecorder) CandidatesByHeight(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) CommitStateChanges(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) GetCode(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) GetCodeHash(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) GetContractState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) Height() *gomock.Call
- func (mr *MockFactoryMockRecorder) LoadOrCreateState(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) Nonce(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) RootHash() *gomock.Call
- func (mr *MockFactoryMockRecorder) SetCode(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) SetContractState(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) State(arg0 interface{}) *gomock.Call
- func (mr *MockFactoryMockRecorder) Stop(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) CachedState ¶
func (m *MockFactory) CachedState(arg0 string) (*state.State, error)
CachedState mocks base method
func (*MockFactory) Candidates ¶
func (m *MockFactory) Candidates() (uint64, []*state.Candidate)
Candidates mocks base method
func (*MockFactory) CandidatesByHeight ¶
func (m *MockFactory) CandidatesByHeight(arg0 uint64) ([]*state.Candidate, error)
CandidatesByHeight mocks base method
func (*MockFactory) CommitStateChanges ¶
func (m *MockFactory) CommitStateChanges(arg0 uint64, arg1 []*action.Transfer, arg2 []*action.Vote, arg3 []*action.Execution) error
CommitStateChanges 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) GetCode ¶
func (m *MockFactory) GetCode(arg0 hash.AddrHash) ([]byte, error)
GetCode mocks base method
func (*MockFactory) GetCodeHash ¶
GetCodeHash mocks base method
func (*MockFactory) GetContractState ¶
GetContractState mocks base method
func (*MockFactory) Height ¶
func (m *MockFactory) Height() (uint64, error)
Height mocks base method
func (*MockFactory) LoadOrCreateState ¶
LoadOrCreateState mocks base method
func (*MockFactory) Nonce ¶
func (m *MockFactory) Nonce(arg0 string) (uint64, error)
Nonce mocks base method
func (*MockFactory) RootHash ¶
func (m *MockFactory) RootHash() hash.Hash32B
RootHash mocks base method
func (*MockFactory) SetCode ¶
func (m *MockFactory) SetCode(arg0 hash.AddrHash, arg1 []byte) error
SetCode mocks base method
func (*MockFactory) SetContractState ¶
SetContractState mocks base method
func (*MockFactory) Start ¶
func (m *MockFactory) Start(arg0 context.Context) error
Start 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) CachedState ¶
func (mr *MockFactoryMockRecorder) CachedState(arg0 interface{}) *gomock.Call
CachedState indicates an expected call of CachedState
func (*MockFactoryMockRecorder) Candidates ¶
func (mr *MockFactoryMockRecorder) Candidates() *gomock.Call
Candidates indicates an expected call of Candidates
func (*MockFactoryMockRecorder) CandidatesByHeight ¶
func (mr *MockFactoryMockRecorder) CandidatesByHeight(arg0 interface{}) *gomock.Call
CandidatesByHeight indicates an expected call of CandidatesByHeight
func (*MockFactoryMockRecorder) CommitStateChanges ¶
func (mr *MockFactoryMockRecorder) CommitStateChanges(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CommitStateChanges indicates an expected call of CommitStateChanges
func (*MockFactoryMockRecorder) GetCode ¶
func (mr *MockFactoryMockRecorder) GetCode(arg0 interface{}) *gomock.Call
GetCode indicates an expected call of GetCode
func (*MockFactoryMockRecorder) GetCodeHash ¶
func (mr *MockFactoryMockRecorder) GetCodeHash(arg0 interface{}) *gomock.Call
GetCodeHash indicates an expected call of GetCodeHash
func (*MockFactoryMockRecorder) GetContractState ¶
func (mr *MockFactoryMockRecorder) GetContractState(arg0, arg1 interface{}) *gomock.Call
GetContractState indicates an expected call of GetContractState
func (*MockFactoryMockRecorder) Height ¶
func (mr *MockFactoryMockRecorder) Height() *gomock.Call
Height indicates an expected call of Height
func (*MockFactoryMockRecorder) LoadOrCreateState ¶
func (mr *MockFactoryMockRecorder) LoadOrCreateState(arg0, arg1 interface{}) *gomock.Call
LoadOrCreateState indicates an expected call of LoadOrCreateState
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) SetCode ¶
func (mr *MockFactoryMockRecorder) SetCode(arg0, arg1 interface{}) *gomock.Call
SetCode indicates an expected call of SetCode
func (*MockFactoryMockRecorder) SetContractState ¶
func (mr *MockFactoryMockRecorder) SetContractState(arg0, arg1, arg2 interface{}) *gomock.Call
SetContractState indicates an expected call of SetContractState
func (*MockFactoryMockRecorder) Start ¶
func (mr *MockFactoryMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start
func (*MockFactoryMockRecorder) State ¶
func (mr *MockFactoryMockRecorder) State(arg0 interface{}) *gomock.Call
State indicates an expected call of State
func (*MockFactoryMockRecorder) Stop ¶
func (mr *MockFactoryMockRecorder) Stop(arg0 interface{}) *gomock.Call
Stop indicates an expected call of Stop