-
Notifications
You must be signed in to change notification settings - Fork 661
/
mock_subnet_connector.go
53 lines (43 loc) · 1.77 KB
/
mock_subnet_connector.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
// Copyright (C) 2019-2022, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/ava-labs/avalanchego/snow/validators (interfaces: SubnetConnector)
// Package validators is a generated GoMock package.
package validators
import (
context "context"
reflect "reflect"
ids "github.com/ava-labs/avalanchego/ids"
gomock "github.com/golang/mock/gomock"
)
// MockSubnetConnector is a mock of SubnetConnector interface.
type MockSubnetConnector struct {
ctrl *gomock.Controller
recorder *MockSubnetConnectorMockRecorder
}
// MockSubnetConnectorMockRecorder is the mock recorder for MockSubnetConnector.
type MockSubnetConnectorMockRecorder struct {
mock *MockSubnetConnector
}
// NewMockSubnetConnector creates a new mock instance.
func NewMockSubnetConnector(ctrl *gomock.Controller) *MockSubnetConnector {
mock := &MockSubnetConnector{ctrl: ctrl}
mock.recorder = &MockSubnetConnectorMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockSubnetConnector) EXPECT() *MockSubnetConnectorMockRecorder {
return m.recorder
}
// ConnectedSubnet mocks base method.
func (m *MockSubnetConnector) ConnectedSubnet(arg0 context.Context, arg1 ids.NodeID, arg2 ids.ID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ConnectedSubnet", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// ConnectedSubnet indicates an expected call of ConnectedSubnet.
func (mr *MockSubnetConnectorMockRecorder) ConnectedSubnet(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectedSubnet", reflect.TypeOf((*MockSubnetConnector)(nil).ConnectedSubnet), arg0, arg1, arg2)
}