Documentation ¶
Overview ¶
Package mock_p2p is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) FetchMostRecentStateBlock(imageHash string, block *mainchain.Block) (*statechain.Block, error)
- func (m *MockInterface) GetMainchainBlock(c *go_cid.Cid) (*mainchain.Block, error)
- func (m *MockInterface) GetMerkleTree(c *go_cid.Cid) (*merkle.Tree, error)
- func (m *MockInterface) GetStatechainBlock(c *go_cid.Cid) (*statechain.Block, error)
- func (m *MockInterface) GetStatechainDiff(c *go_cid.Cid) (*statechain.Diff, error)
- func (m *MockInterface) GetStatechainTransaction(c *go_cid.Cid) (*statechain.Transaction, error)
- func (m *MockInterface) Props() p2p.Props
- func (m *MockInterface) Set(v interface{}) (*go_cid.Cid, error)
- func (m *MockInterface) SetMainchainBlock(block *mainchain.Block) (*go_cid.Cid, error)
- func (m *MockInterface) SetMerkleTree(tree *merkle.Tree) (*go_cid.Cid, error)
- func (m *MockInterface) SetStatechainBlock(block *statechain.Block) (*go_cid.Cid, error)
- func (m *MockInterface) SetStatechainDiff(d *statechain.Diff) (*go_cid.Cid, error)
- func (m *MockInterface) SetStatechainTransaction(tx *statechain.Transaction) (*go_cid.Cid, error)
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) FetchMostRecentStateBlock(imageHash, block interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetMainchainBlock(c interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetMerkleTree(c interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetStatechainBlock(c interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetStatechainDiff(c interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) GetStatechainTransaction(c interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Props() *gomock.Call
- func (mr *MockInterfaceMockRecorder) Set(v interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetMainchainBlock(block interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetMerkleTree(tree interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetStatechainBlock(block interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetStatechainDiff(d interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) SetStatechainTransaction(tx interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockInterface) FetchMostRecentStateBlock ¶
func (m *MockInterface) FetchMostRecentStateBlock(imageHash string, block *mainchain.Block) (*statechain.Block, error)
FetchMostRecentStateBlock mocks base method
func (*MockInterface) GetMainchainBlock ¶
GetMainchainBlock mocks base method
func (*MockInterface) GetMerkleTree ¶
GetMerkleTree mocks base method
func (*MockInterface) GetStatechainBlock ¶
func (m *MockInterface) GetStatechainBlock(c *go_cid.Cid) (*statechain.Block, error)
GetStatechainBlock mocks base method
func (*MockInterface) GetStatechainDiff ¶
func (m *MockInterface) GetStatechainDiff(c *go_cid.Cid) (*statechain.Diff, error)
GetStatechainDiff mocks base method
func (*MockInterface) GetStatechainTransaction ¶
func (m *MockInterface) GetStatechainTransaction(c *go_cid.Cid) (*statechain.Transaction, error)
GetStatechainTransaction mocks base method
func (*MockInterface) Set ¶
func (m *MockInterface) Set(v interface{}) (*go_cid.Cid, error)
Set mocks base method
func (*MockInterface) SetMainchainBlock ¶
SetMainchainBlock mocks base method
func (*MockInterface) SetMerkleTree ¶
SetMerkleTree mocks base method
func (*MockInterface) SetStatechainBlock ¶
func (m *MockInterface) SetStatechainBlock(block *statechain.Block) (*go_cid.Cid, error)
SetStatechainBlock mocks base method
func (*MockInterface) SetStatechainDiff ¶
func (m *MockInterface) SetStatechainDiff(d *statechain.Diff) (*go_cid.Cid, error)
SetStatechainDiff mocks base method
func (*MockInterface) SetStatechainTransaction ¶
func (m *MockInterface) SetStatechainTransaction(tx *statechain.Transaction) (*go_cid.Cid, error)
SetStatechainTransaction mocks base method
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface
func (*MockInterfaceMockRecorder) FetchMostRecentStateBlock ¶
func (mr *MockInterfaceMockRecorder) FetchMostRecentStateBlock(imageHash, block interface{}) *gomock.Call
FetchMostRecentStateBlock indicates an expected call of FetchMostRecentStateBlock
func (*MockInterfaceMockRecorder) GetMainchainBlock ¶
func (mr *MockInterfaceMockRecorder) GetMainchainBlock(c interface{}) *gomock.Call
GetMainchainBlock indicates an expected call of GetMainchainBlock
func (*MockInterfaceMockRecorder) GetMerkleTree ¶
func (mr *MockInterfaceMockRecorder) GetMerkleTree(c interface{}) *gomock.Call
GetMerkleTree indicates an expected call of GetMerkleTree
func (*MockInterfaceMockRecorder) GetStatechainBlock ¶
func (mr *MockInterfaceMockRecorder) GetStatechainBlock(c interface{}) *gomock.Call
GetStatechainBlock indicates an expected call of GetStatechainBlock
func (*MockInterfaceMockRecorder) GetStatechainDiff ¶
func (mr *MockInterfaceMockRecorder) GetStatechainDiff(c interface{}) *gomock.Call
GetStatechainDiff indicates an expected call of GetStatechainDiff
func (*MockInterfaceMockRecorder) GetStatechainTransaction ¶
func (mr *MockInterfaceMockRecorder) GetStatechainTransaction(c interface{}) *gomock.Call
GetStatechainTransaction indicates an expected call of GetStatechainTransaction
func (*MockInterfaceMockRecorder) Props ¶
func (mr *MockInterfaceMockRecorder) Props() *gomock.Call
Props indicates an expected call of Props
func (*MockInterfaceMockRecorder) Set ¶
func (mr *MockInterfaceMockRecorder) Set(v interface{}) *gomock.Call
Set indicates an expected call of Set
func (*MockInterfaceMockRecorder) SetMainchainBlock ¶
func (mr *MockInterfaceMockRecorder) SetMainchainBlock(block interface{}) *gomock.Call
SetMainchainBlock indicates an expected call of SetMainchainBlock
func (*MockInterfaceMockRecorder) SetMerkleTree ¶
func (mr *MockInterfaceMockRecorder) SetMerkleTree(tree interface{}) *gomock.Call
SetMerkleTree indicates an expected call of SetMerkleTree
func (*MockInterfaceMockRecorder) SetStatechainBlock ¶
func (mr *MockInterfaceMockRecorder) SetStatechainBlock(block interface{}) *gomock.Call
SetStatechainBlock indicates an expected call of SetStatechainBlock
func (*MockInterfaceMockRecorder) SetStatechainDiff ¶
func (mr *MockInterfaceMockRecorder) SetStatechainDiff(d interface{}) *gomock.Call
SetStatechainDiff indicates an expected call of SetStatechainDiff
func (*MockInterfaceMockRecorder) SetStatechainTransaction ¶
func (mr *MockInterfaceMockRecorder) SetStatechainTransaction(tx interface{}) *gomock.Call
SetStatechainTransaction indicates an expected call of SetStatechainTransaction