aergoio/aergo

View on GitHub
p2p/p2pmock/mock_chainaccessor.go

Summary

Maintainability
C
7 hrs
Test Coverage
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/aergoio/aergo/v2/types (interfaces: ChainAccessor)

// package p2pmock is a generated GoMock package.
package p2pmock

import (
    types "github.com/aergoio/aergo/v2/types"
    gomock "github.com/golang/mock/gomock"
    big "math/big"
    reflect "reflect"
)

// MockChainAccessor is a mock of ChainAccessor interface
type MockChainAccessor struct {
    ctrl     *gomock.Controller
    recorder *MockChainAccessorMockRecorder
}

// MockChainAccessorMockRecorder is the mock recorder for MockChainAccessor
type MockChainAccessorMockRecorder struct {
    mock *MockChainAccessor
}

// NewMockChainAccessor creates a new mock instance
func NewMockChainAccessor(ctrl *gomock.Controller) *MockChainAccessor {
    mock := &MockChainAccessor{ctrl: ctrl}
    mock.recorder = &MockChainAccessorMockRecorder{mock}
    return mock
}

// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockChainAccessor) EXPECT() *MockChainAccessorMockRecorder {
    return m.recorder
}

// ChainID mocks base method
func (m *MockChainAccessor) ChainID(arg0 uint64) *types.ChainID {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "ChainID", arg0)
    ret0, _ := ret[0].(*types.ChainID)
    return ret0
}

// ChainID indicates an expected call of ChainID
func (mr *MockChainAccessorMockRecorder) ChainID(arg0 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChainID", reflect.TypeOf((*MockChainAccessor)(nil).ChainID), arg0)
}

// GetBestBlock mocks base method
func (m *MockChainAccessor) GetBestBlock() (*types.Block, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "GetBestBlock")
    ret0, _ := ret[0].(*types.Block)
    ret1, _ := ret[1].(error)
    return ret0, ret1
}

// GetBestBlock indicates an expected call of GetBestBlock
func (mr *MockChainAccessorMockRecorder) GetBestBlock() *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBestBlock", reflect.TypeOf((*MockChainAccessor)(nil).GetBestBlock))
}

// GetBlock mocks base method
func (m *MockChainAccessor) GetBlock(arg0 []byte) (*types.Block, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "GetBlock", arg0)
    ret0, _ := ret[0].(*types.Block)
    ret1, _ := ret[1].(error)
    return ret0, ret1
}

// GetBlock indicates an expected call of GetBlock
func (mr *MockChainAccessorMockRecorder) GetBlock(arg0 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBlock", reflect.TypeOf((*MockChainAccessor)(nil).GetBlock), arg0)
}

// GetChainStats mocks base method
func (m *MockChainAccessor) GetChainStats() string {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "GetChainStats")
    ret0, _ := ret[0].(string)
    return ret0
}

// GetChainStats indicates an expected call of GetChainStats
func (mr *MockChainAccessorMockRecorder) GetChainStats() *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChainStats", reflect.TypeOf((*MockChainAccessor)(nil).GetChainStats))
}

// GetConsensusInfo mocks base method
func (m *MockChainAccessor) GetConsensusInfo() string {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "GetConsensusInfo")
    ret0, _ := ret[0].(string)
    return ret0
}

// GetConsensusInfo indicates an expected call of GetConsensusInfo
func (mr *MockChainAccessorMockRecorder) GetConsensusInfo() *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConsensusInfo", reflect.TypeOf((*MockChainAccessor)(nil).GetConsensusInfo))
}

// GetEnterpriseConfig mocks base method
func (m *MockChainAccessor) GetEnterpriseConfig(arg0 string) (*types.EnterpriseConfig, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "GetEnterpriseConfig", arg0)
    ret0, _ := ret[0].(*types.EnterpriseConfig)
    ret1, _ := ret[1].(error)
    return ret0, ret1
}

// GetEnterpriseConfig indicates an expected call of GetEnterpriseConfig
func (mr *MockChainAccessorMockRecorder) GetEnterpriseConfig(arg0 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetEnterpriseConfig", reflect.TypeOf((*MockChainAccessor)(nil).GetEnterpriseConfig), arg0)
}

// GetGenesisInfo mocks base method
func (m *MockChainAccessor) GetGenesisInfo() *types.Genesis {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "GetGenesisInfo")
    ret0, _ := ret[0].(*types.Genesis)
    return ret0
}

// GetGenesisInfo indicates an expected call of GetGenesisInfo
func (mr *MockChainAccessorMockRecorder) GetGenesisInfo() *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetGenesisInfo", reflect.TypeOf((*MockChainAccessor)(nil).GetGenesisInfo))
}

// GetHashByNo mocks base method
func (m *MockChainAccessor) GetHashByNo(arg0 uint64) ([]byte, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "GetHashByNo", arg0)
    ret0, _ := ret[0].([]byte)
    ret1, _ := ret[1].(error)
    return ret0, ret1
}

// GetHashByNo indicates an expected call of GetHashByNo
func (mr *MockChainAccessorMockRecorder) GetHashByNo(arg0 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHashByNo", reflect.TypeOf((*MockChainAccessor)(nil).GetHashByNo), arg0)
}

// GetSystemValue mocks base method
func (m *MockChainAccessor) GetSystemValue(arg0 types.SystemValue) (*big.Int, error) {
    m.ctrl.T.Helper()
    ret := m.ctrl.Call(m, "GetSystemValue", arg0)
    ret0, _ := ret[0].(*big.Int)
    ret1, _ := ret[1].(error)
    return ret0, ret1
}

// GetSystemValue indicates an expected call of GetSystemValue
func (mr *MockChainAccessorMockRecorder) GetSystemValue(arg0 interface{}) *gomock.Call {
    mr.mock.ctrl.T.Helper()
    return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSystemValue", reflect.TypeOf((*MockChainAccessor)(nil).GetSystemValue), arg0)
}