go.temporal.io/server/chasm/library_mock.go

174 LOC · 58 covered · 116 uncovered · 12 ranges · 192 concepts · 6 introducers · 116 tests

File neighbourhood

The centred file is linked to every concept that introduces one of its ranges, every test that runs code from the file, and the gray connector concepts standing between those tests and the file's own introducer concepts. Undirected links join concepts to every file where they introduce source and concepts to the tests they introduce; arrows show specialization between the displayed concepts and bridge only concepts omitted from this view. Concept colors match the source ranges below; connector concepts have no source color and are shown in gray.

Focused file, its introducer and connector concepts, their introduced files, and tests that run code from the file

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the related-file, concept, and source links on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the related-file, concept, and source links on this page while the interactive map is unavailable.

1 // Code generated by MockGen. DO NOT EDIT.
2 // Source: library.go
3 //
4 // Generated by this command:
5 //
6 // mockgen -package chasm -source library.go -destination library_mock.go
7 //
8
9 // Package chasm is a generated GoMock package.
10 package chasm
11
12 import (
13 reflect "reflect"
14
15 nexus "github.com/nexus-rpc/sdk-go/nexus"
16 gomock "go.uber.org/mock/gomock"
17 grpc "google.golang.org/grpc"
18 )
19
20 // MockLibrary is a mock of Library interface.
21 type MockLibrary struct {
22 ctrl *gomock.Controller
23 recorder *MockLibraryMockRecorder
24 isgomock struct{}
25 }
26
27 // MockLibraryMockRecorder is the mock recorder for MockLibrary.
28 type MockLibraryMockRecorder struct {
29 mock *MockLibrary
30 }
31
32 // NewMockLibrary creates a new mock instance.
33 > func NewMockLibrary(ctrl *gomock.Controller) *MockLibrary { library_mock.go ×3
34 > mock := &MockLibrary{ctrl: ctrl}
35 > mock.recorder = &MockLibraryMockRecorder{mock}
36 > return mock
37 > }
38
39 // EXPECT returns an object that allows the caller to indicate expected use.
40 > func (m *MockLibrary) EXPECT() *MockLibraryMockRecorder { library_mock.go ×3
41 > return m.recorder
42 > }
43
44 // Components mocks base method.
45 > func (m *MockLibrary) Components() []*RegistrableComponent { library_mock.go ×2
46 > m.ctrl.T.Helper()
47 > ret := m.ctrl.Call(m, "Components")
48 > ret0, _ := ret[0].([]*RegistrableComponent)
49 > return ret0
50 > }
51
52 // Components indicates an expected call of Components.
53 > func (mr *MockLibraryMockRecorder) Components() *gomock.Call { library_mock.go ×2
54 > mr.mock.ctrl.T.Helper()
55 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Components", reflect.TypeOf((*MockLibrary)(nil).Components))
56 > }
57
58 // Name mocks base method.
59 > func (m *MockLibrary) Name() string { library_mock.go ×1
60 > m.ctrl.T.Helper()
61 > ret := m.ctrl.Call(m, "Name")
62 > ret0, _ := ret[0].(string)
63 > return ret0
64 > }
65
66 // Name indicates an expected call of Name.
67 > func (mr *MockLibraryMockRecorder) Name() *gomock.Call { library_mock.go ×3
68 > mr.mock.ctrl.T.Helper()
69 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockLibrary)(nil).Name))
70 > }
71
72 // NexusServiceProcessors mocks base method.
73 > func (m *MockLibrary) NexusServiceProcessors() []*NexusServiceProcessor { library_mock.go ×1
74 > m.ctrl.T.Helper()
75 > ret := m.ctrl.Call(m, "NexusServiceProcessors")
76 > ret0, _ := ret[0].([]*NexusServiceProcessor)
77 > return ret0
78 > }
79
80 // NexusServiceProcessors indicates an expected call of NexusServiceProcessors.
81 > func (mr *MockLibraryMockRecorder) NexusServiceProcessors() *gomock.Call { library_mock.go ×3
82 > mr.mock.ctrl.T.Helper()
83 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NexusServiceProcessors", reflect.TypeOf((*MockLibrary)(nil).NexusServiceProcessors))
84 > }
85
86 // NexusServices mocks base method.
87 > func (m *MockLibrary) NexusServices() []*nexus.Service { library_mock.go ×3
88 > m.ctrl.T.Helper()
89 > ret := m.ctrl.Call(m, "NexusServices")
90 > ret0, _ := ret[0].([]*nexus.Service)
91 > return ret0
92 > }
93
94 // NexusServices indicates an expected call of NexusServices.
95 > func (mr *MockLibraryMockRecorder) NexusServices() *gomock.Call { library_mock.go ×3
96 > mr.mock.ctrl.T.Helper()
97 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NexusServices", reflect.TypeOf((*MockLibrary)(nil).NexusServices))
98 > }
99
100 // RegisterServices mocks base method.
101 func (m *MockLibrary) RegisterServices(server *grpc.Server) {
102 m.ctrl.T.Helper()
103 m.ctrl.Call(m, "RegisterServices", server)
104 }
105
106 // RegisterServices indicates an expected call of RegisterServices.
107 func (mr *MockLibraryMockRecorder) RegisterServices(server any) *gomock.Call {
108 mr.mock.ctrl.T.Helper()
109 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RegisterServices", reflect.TypeOf((*MockLibrary)(nil).RegisterServices), server)
110 }
111
112 // Tasks mocks base method.
113 > func (m *MockLibrary) Tasks() []*RegistrableTask { library_mock.go ×2
114 > m.ctrl.T.Helper()
115 > ret := m.ctrl.Call(m, "Tasks")
116 > ret0, _ := ret[0].([]*RegistrableTask)
117 > return ret0
118 > }
119
120 // Tasks indicates an expected call of Tasks.
121 > func (mr *MockLibraryMockRecorder) Tasks() *gomock.Call { library_mock.go ×2
122 > mr.mock.ctrl.T.Helper()
123 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Tasks", reflect.TypeOf((*MockLibrary)(nil).Tasks))
124 > }
125
126 // mustEmbedUnimplementedLibrary mocks base method.
127 func (m *MockLibrary) mustEmbedUnimplementedLibrary() {
128 m.ctrl.T.Helper()
129 m.ctrl.Call(m, "mustEmbedUnimplementedLibrary")
130 }
131
132 // mustEmbedUnimplementedLibrary indicates an expected call of mustEmbedUnimplementedLibrary.
133 func (mr *MockLibraryMockRecorder) mustEmbedUnimplementedLibrary() *gomock.Call {
134 mr.mock.ctrl.T.Helper()
135 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "mustEmbedUnimplementedLibrary", reflect.TypeOf((*MockLibrary)(nil).mustEmbedUnimplementedLibrary))
136 }
137
138 // Mocknamer is a mock of namer interface.
139 type Mocknamer struct {
140 ctrl *gomock.Controller
141 recorder *MocknamerMockRecorder
142 isgomock struct{}
143 }
144
145 // MocknamerMockRecorder is the mock recorder for Mocknamer.
146 type MocknamerMockRecorder struct {
147 mock *Mocknamer
148 }
149
150 // NewMocknamer creates a new mock instance.
151 func NewMocknamer(ctrl *gomock.Controller) *Mocknamer {
152 mock := &Mocknamer{ctrl: ctrl}
153 mock.recorder = &MocknamerMockRecorder{mock}
154 return mock
155 }
156
157 // EXPECT returns an object that allows the caller to indicate expected use.
158 func (m *Mocknamer) EXPECT() *MocknamerMockRecorder {
159 return m.recorder
160 }
161
162 // Name mocks base method.
163 func (m *Mocknamer) Name() string {
164 m.ctrl.T.Helper()
165 ret := m.ctrl.Call(m, "Name")
166 ret0, _ := ret[0].(string)
167 return ret0
168 }
169
170 // Name indicates an expected call of Name.
171 func (mr *MocknamerMockRecorder) Name() *gomock.Call {
172 mr.mock.ctrl.T.Helper()
173 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*Mocknamer)(nil).Name))
174 }