forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build_block_with_context_vm.go
55 lines (45 loc) · 2.19 KB
/
build_block_with_context_vm.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright (C) 2019-2023, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/MetalBlockchain/metalgo/snow/engine/snowman/block (interfaces: BuildBlockWithContextChainVM)
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
snowman "github.com/MetalBlockchain/metalgo/snow/consensus/snowman"
block "github.com/MetalBlockchain/metalgo/snow/engine/snowman/block"
gomock "github.com/golang/mock/gomock"
)
// MockBuildBlockWithContextChainVM is a mock of BuildBlockWithContextChainVM interface.
type MockBuildBlockWithContextChainVM struct {
ctrl *gomock.Controller
recorder *MockBuildBlockWithContextChainVMMockRecorder
}
// MockBuildBlockWithContextChainVMMockRecorder is the mock recorder for MockBuildBlockWithContextChainVM.
type MockBuildBlockWithContextChainVMMockRecorder struct {
mock *MockBuildBlockWithContextChainVM
}
// NewMockBuildBlockWithContextChainVM creates a new mock instance.
func NewMockBuildBlockWithContextChainVM(ctrl *gomock.Controller) *MockBuildBlockWithContextChainVM {
mock := &MockBuildBlockWithContextChainVM{ctrl: ctrl}
mock.recorder = &MockBuildBlockWithContextChainVMMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBuildBlockWithContextChainVM) EXPECT() *MockBuildBlockWithContextChainVMMockRecorder {
return m.recorder
}
// BuildBlockWithContext mocks base method.
func (m *MockBuildBlockWithContextChainVM) BuildBlockWithContext(arg0 context.Context, arg1 *block.Context) (snowman.Block, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "BuildBlockWithContext", arg0, arg1)
ret0, _ := ret[0].(snowman.Block)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// BuildBlockWithContext indicates an expected call of BuildBlockWithContext.
func (mr *MockBuildBlockWithContextChainVMMockRecorder) BuildBlockWithContext(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BuildBlockWithContext", reflect.TypeOf((*MockBuildBlockWithContextChainVM)(nil).BuildBlockWithContext), arg0, arg1)
}