factory_mock.go ×2

Frontier kind: Code frontier

unlabeled · c_6017caa5c7b2

10 tests · 3552 LOC · 165 files · introduces 0 tests · 36 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges36 lines · 4 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
598 ranges3552 lines · 165 files · Browse complete extent
All tests (intent)
10 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

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 native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

4 files ranked by introduced lines: 36 introduced LOC across 8 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/sdk/factory_mock.go 10 introduced LOC · 2 ranges

Open complete file

57
58 // NewClient mocks base method.
59 > func (m *MockClientFactory) NewClient(options client.Options) client.Client { factory_mock.go
60 > m.ctrl.T.Helper()
61 > ret := m.ctrl.Call(m, "NewClient", options)
62 > ret0, _ := ret[0].(client.Client)
63 > return ret0
64 > }
65
66 // NewClient indicates an expected call of NewClient.
67 > func (mr *MockClientFactoryMockRecorder) NewClient(options any) *gomock.Call { factory_mock.go
68 > mr.mock.ctrl.T.Helper()
69 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewClient", reflect.TypeOf((*MockClientFactory)(nil).NewClient), options)
70 > }
71
72 // NewWorker mocks base method.
go.temporal.io/server/service/worker/common/interface_mock.go 10 introduced LOC · 2 ranges

Open complete file

133
134 // Register mocks base method.
135 > func (m *MockPerNSWorkerComponent) Register(arg0 worker.Registry, arg1 *namespace.Namespace, arg2 RegistrationDetails) func() { interface_mock.go
136 > m.ctrl.T.Helper()
137 > ret := m.ctrl.Call(m, "Register", arg0, arg1, arg2)
138 > ret0, _ := ret[0].(func())
139 > return ret0
140 > }
141
142 // Register indicates an expected call of Register.
143 > func (mr *MockPerNSWorkerComponentMockRecorder) Register(arg0, arg1, arg2 any) *gomock.Call { interface_mock.go
144 > mr.mock.ctrl.T.Helper()
145 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockPerNSWorkerComponent)(nil).Register), arg0, arg1, arg2)
146 > }
go.temporal.io/server/common/testing/mocksdk/client_mock.go 8 introduced LOC · 2 ranges

Open complete file

76
77 // Close mocks base method.
78 > func (m *MockClient) Close() { client_mock.go
79 > m.ctrl.T.Helper()
80 > m.ctrl.Call(m, "Close")
81 > }
82
83 // Close indicates an expected call of Close.
84 > func (mr *MockClientMockRecorder) Close() *gomock.Call { client_mock.go
85 > mr.mock.ctrl.T.Helper()
86 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockClient)(nil).Close))
87 > }
88
89 // CompleteActivity mocks base method.
go.temporal.io/server/common/testing/mocksdk/worker_mock.go 8 introduced LOC · 2 ranges

Open complete file

156
157 // Stop mocks base method.
158 > func (m *MockWorker) Stop() { worker_mock.go
159 > m.ctrl.T.Helper()
160 > m.ctrl.Call(m, "Stop")
161 > }
162
163 // Stop indicates an expected call of Stop.
164 > func (mr *MockWorkerMockRecorder) Stop() *gomock.Call { worker_mock.go
165 > mr.mock.ctrl.T.Helper()
166 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockWorker)(nil).Stop))
167 > }