-
Notifications
You must be signed in to change notification settings - Fork 19
/
validator_topology_mock.go
104 lines (87 loc) · 3.53 KB
/
validator_topology_mock.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// Code generated by MockGen. DO NOT EDIT.
// Source: code.vegaprotocol.io/vega/core/notary (interfaces: ValidatorTopology)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockValidatorTopology is a mock of ValidatorTopology interface.
type MockValidatorTopology struct {
ctrl *gomock.Controller
recorder *MockValidatorTopologyMockRecorder
}
// MockValidatorTopologyMockRecorder is the mock recorder for MockValidatorTopology.
type MockValidatorTopologyMockRecorder struct {
mock *MockValidatorTopology
}
// NewMockValidatorTopology creates a new mock instance.
func NewMockValidatorTopology(ctrl *gomock.Controller) *MockValidatorTopology {
mock := &MockValidatorTopology{ctrl: ctrl}
mock.recorder = &MockValidatorTopologyMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockValidatorTopology) EXPECT() *MockValidatorTopologyMockRecorder {
return m.recorder
}
// IsTendermintValidator mocks base method.
func (m *MockValidatorTopology) IsTendermintValidator(arg0 string) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsTendermintValidator", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// IsTendermintValidator indicates an expected call of IsTendermintValidator.
func (mr *MockValidatorTopologyMockRecorder) IsTendermintValidator(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsTendermintValidator", reflect.TypeOf((*MockValidatorTopology)(nil).IsTendermintValidator), arg0)
}
// IsValidator mocks base method.
func (m *MockValidatorTopology) IsValidator() bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsValidator")
ret0, _ := ret[0].(bool)
return ret0
}
// IsValidator indicates an expected call of IsValidator.
func (mr *MockValidatorTopologyMockRecorder) IsValidator() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValidator", reflect.TypeOf((*MockValidatorTopology)(nil).IsValidator))
}
// IsValidatorVegaPubKey mocks base method.
func (m *MockValidatorTopology) IsValidatorVegaPubKey(arg0 string) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsValidatorVegaPubKey", arg0)
ret0, _ := ret[0].(bool)
return ret0
}
// IsValidatorVegaPubKey indicates an expected call of IsValidatorVegaPubKey.
func (mr *MockValidatorTopologyMockRecorder) IsValidatorVegaPubKey(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsValidatorVegaPubKey", reflect.TypeOf((*MockValidatorTopology)(nil).IsValidatorVegaPubKey), arg0)
}
// Len mocks base method.
func (m *MockValidatorTopology) Len() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Len")
ret0, _ := ret[0].(int)
return ret0
}
// Len indicates an expected call of Len.
func (mr *MockValidatorTopologyMockRecorder) Len() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Len", reflect.TypeOf((*MockValidatorTopology)(nil).Len))
}
// SelfVegaPubKey mocks base method.
func (m *MockValidatorTopology) SelfVegaPubKey() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SelfVegaPubKey")
ret0, _ := ret[0].(string)
return ret0
}
// SelfVegaPubKey indicates an expected call of SelfVegaPubKey.
func (mr *MockValidatorTopologyMockRecorder) SelfVegaPubKey() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfVegaPubKey", reflect.TypeOf((*MockValidatorTopology)(nil).SelfVegaPubKey))
}