-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontext_mock_test.go
111 lines (94 loc) · 3.56 KB
/
context_mock_test.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
105
106
107
108
109
110
111
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/juju/juju/environs/context (interfaces: ProviderCallContext)
//
// Generated by this command:
//
// mockgen -package space -destination context_mock_test.go github.com/juju/juju/environs/context ProviderCallContext
//
// Package space is a generated GoMock package.
package space
import (
reflect "reflect"
time "time"
gomock "go.uber.org/mock/gomock"
)
// MockProviderCallContext is a mock of ProviderCallContext interface.
type MockProviderCallContext struct {
ctrl *gomock.Controller
recorder *MockProviderCallContextMockRecorder
}
// MockProviderCallContextMockRecorder is the mock recorder for MockProviderCallContext.
type MockProviderCallContextMockRecorder struct {
mock *MockProviderCallContext
}
// NewMockProviderCallContext creates a new mock instance.
func NewMockProviderCallContext(ctrl *gomock.Controller) *MockProviderCallContext {
mock := &MockProviderCallContext{ctrl: ctrl}
mock.recorder = &MockProviderCallContextMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockProviderCallContext) EXPECT() *MockProviderCallContextMockRecorder {
return m.recorder
}
// Deadline mocks base method.
func (m *MockProviderCallContext) Deadline() (time.Time, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Deadline")
ret0, _ := ret[0].(time.Time)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// Deadline indicates an expected call of Deadline.
func (mr *MockProviderCallContextMockRecorder) Deadline() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deadline", reflect.TypeOf((*MockProviderCallContext)(nil).Deadline))
}
// Done mocks base method.
func (m *MockProviderCallContext) Done() <-chan struct{} {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Done")
ret0, _ := ret[0].(<-chan struct{})
return ret0
}
// Done indicates an expected call of Done.
func (mr *MockProviderCallContextMockRecorder) Done() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Done", reflect.TypeOf((*MockProviderCallContext)(nil).Done))
}
// Err mocks base method.
func (m *MockProviderCallContext) Err() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Err")
ret0, _ := ret[0].(error)
return ret0
}
// Err indicates an expected call of Err.
func (mr *MockProviderCallContextMockRecorder) Err() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Err", reflect.TypeOf((*MockProviderCallContext)(nil).Err))
}
// InvalidateCredential mocks base method.
func (m *MockProviderCallContext) InvalidateCredential(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "InvalidateCredential", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// InvalidateCredential indicates an expected call of InvalidateCredential.
func (mr *MockProviderCallContextMockRecorder) InvalidateCredential(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InvalidateCredential", reflect.TypeOf((*MockProviderCallContext)(nil).InvalidateCredential), arg0)
}
// Value mocks base method.
func (m *MockProviderCallContext) Value(arg0 any) any {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Value", arg0)
ret0, _ := ret[0].(any)
return ret0
}
// Value indicates an expected call of Value.
func (mr *MockProviderCallContextMockRecorder) Value(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Value", reflect.TypeOf((*MockProviderCallContext)(nil).Value), arg0)
}