github.com/MetalBlockchain/metalgo@v1.11.9/snow/engine/snowman/block/mock_build_block_with_context_vm.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/MetalBlockchain/metalgo/snow/engine/snowman/block (interfaces: BuildBlockWithContextChainVM) 3 // 4 // Generated by this command: 5 // 6 // mockgen -package=block -destination=snow/engine/snowman/block/mock_build_block_with_context_vm.go github.com/MetalBlockchain/metalgo/snow/engine/snowman/block BuildBlockWithContextChainVM 7 // 8 9 // Package block is a generated GoMock package. 10 package block 11 12 import ( 13 context "context" 14 reflect "reflect" 15 16 snowman "github.com/MetalBlockchain/metalgo/snow/consensus/snowman" 17 gomock "go.uber.org/mock/gomock" 18 ) 19 20 // MockBuildBlockWithContextChainVM is a mock of BuildBlockWithContextChainVM interface. 21 type MockBuildBlockWithContextChainVM struct { 22 ctrl *gomock.Controller 23 recorder *MockBuildBlockWithContextChainVMMockRecorder 24 } 25 26 // MockBuildBlockWithContextChainVMMockRecorder is the mock recorder for MockBuildBlockWithContextChainVM. 27 type MockBuildBlockWithContextChainVMMockRecorder struct { 28 mock *MockBuildBlockWithContextChainVM 29 } 30 31 // NewMockBuildBlockWithContextChainVM creates a new mock instance. 32 func NewMockBuildBlockWithContextChainVM(ctrl *gomock.Controller) *MockBuildBlockWithContextChainVM { 33 mock := &MockBuildBlockWithContextChainVM{ctrl: ctrl} 34 mock.recorder = &MockBuildBlockWithContextChainVMMockRecorder{mock} 35 return mock 36 } 37 38 // EXPECT returns an object that allows the caller to indicate expected use. 39 func (m *MockBuildBlockWithContextChainVM) EXPECT() *MockBuildBlockWithContextChainVMMockRecorder { 40 return m.recorder 41 } 42 43 // BuildBlockWithContext mocks base method. 44 func (m *MockBuildBlockWithContextChainVM) BuildBlockWithContext(arg0 context.Context, arg1 *Context) (snowman.Block, error) { 45 m.ctrl.T.Helper() 46 ret := m.ctrl.Call(m, "BuildBlockWithContext", arg0, arg1) 47 ret0, _ := ret[0].(snowman.Block) 48 ret1, _ := ret[1].(error) 49 return ret0, ret1 50 } 51 52 // BuildBlockWithContext indicates an expected call of BuildBlockWithContext. 53 func (mr *MockBuildBlockWithContextChainVMMockRecorder) BuildBlockWithContext(arg0, arg1 any) *gomock.Call { 54 mr.mock.ctrl.T.Helper() 55 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildBlockWithContext", reflect.TypeOf((*MockBuildBlockWithContextChainVM)(nil).BuildBlockWithContext), arg0, arg1) 56 }