worker_mock.go ×4

Frontier kind: Code frontier

unlabeled · c_9518f1d69ed9

19 tests · 2851 LOC · 149 files · introduces 0 tests · 28 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges28 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
424 ranges2851 lines · 149 files · Browse complete extent
All tests (intent)
19 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.

2 files ranked by introduced lines: 28 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/testing/mocksdk/worker_mock.go 18 introduced LOC · 4 ranges

Open complete file

32
33 // NewMockWorker creates a new mock instance.
34 > func NewMockWorker(ctrl *gomock.Controller) *MockWorker { worker_mock.go
35 > mock := &MockWorker{ctrl: ctrl}
36 > mock.recorder = &MockWorkerMockRecorder{mock}
37 > return mock
38 > }
39
40 // EXPECT returns an object that allows the caller to indicate expected use.
41 > func (m *MockWorker) EXPECT() *MockWorkerMockRecorder { worker_mock.go
42 > return m.recorder
43 > }
44
45 // RegisterActivity mocks base method.
142
143 // Start mocks base method.
144 > func (m *MockWorker) Start() error { worker_mock.go
145 > m.ctrl.T.Helper()
146 > ret := m.ctrl.Call(m, "Start")
147 > ret0, _ := ret[0].(error)
148 > return ret0
149 > }
150
151 // Start indicates an expected call of Start.
152 > func (mr *MockWorkerMockRecorder) Start() *gomock.Call { worker_mock.go
153 > mr.mock.ctrl.T.Helper()
154 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockWorker)(nil).Start))
155 > }
156
157 // Stop mocks base method.
go.temporal.io/server/common/sdk/factory_mock.go 10 introduced LOC · 2 ranges

Open complete file

71
72 // NewWorker mocks base method.
73 > func (m *MockClientFactory) NewWorker(arg0 client.Client, taskQueue string, options worker.Options) worker.Worker { factory_mock.go
74 > m.ctrl.T.Helper()
75 > ret := m.ctrl.Call(m, "NewWorker", arg0, taskQueue, options)
76 > ret0, _ := ret[0].(worker.Worker)
77 > return ret0
78 > }
79
80 // NewWorker indicates an expected call of NewWorker.
81 > func (mr *MockClientFactoryMockRecorder) NewWorker(arg0, taskQueue, options any) *gomock.Call { factory_mock.go
82 > mr.mock.ctrl.T.Helper()
83 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewWorker", reflect.TypeOf((*MockClientFactory)(nil).NewWorker), arg0, taskQueue, options)
84 > }