service_grpc.pb.mock.go ×3

Frontier kind: Joint frontier

unlabeled · c_6b3d3d7a76d7

4 tests · 2808 LOC · 143 files · introduces 1 test · 35 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges35 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
435 ranges2808 lines · 143 files · Browse complete extent
All tests (intent)
4 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.

1 test introduced at this concept.

Introduced code

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

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

go.temporal.io/server/service/matching/forwarder.go 22 introduced LOC · 3 ranges

Open complete file

263 }
264 return newInternalStartedTask(&startedTaskInfo{workflowTaskInfo: resp}), nil
265 > case enumspb.TASK_QUEUE_TYPE_ACTIVITY: forwarder.go
266 > resp, err := fwdr.client.PollActivityTaskQueue(ctx, &matchingservice.PollActivityTaskQueueRequest{
267 > NamespaceId: fwdr.partition.TaskQueue().NamespaceId(),
268 > PollerId: pollerID,
269 > PollRequest: &workflowservice.PollActivityTaskQueueRequest{
270 > TaskQueue: &taskqueuepb.TaskQueue{
271 > Name: target.RpcName(),
272 > Kind: fwdr.partition.Kind(),
273 > },
274 > Identity: identity,
275 > TaskQueueMetadata: pollMetadata.taskQueueMetadata,
276 > WorkerVersionCapabilities: pollMetadata.workerVersionCapabilities,
277 > DeploymentOptions: pollMetadata.deploymentOptions,
278 > WorkerInstanceKey: pollMetadata.workerInstanceKey,
279 > WorkerControlTaskQueue: pollMetadata.workerControlTaskQueue,
280 > },
281 > ForwardedSource: fwdr.partition.RpcName(),
282 > Conditions: pollMetadata.conditions,
283 > })
284 > if err != nil {
285 return nil, fwdr.handleErr(err)
286 > } else if resp.TaskToken == nil { forwarder.go
287 return nil, errNoTasks
288 }
289 > return newInternalStartedTask(&startedTaskInfo{activityTaskInfo: resp}), nil forwarder.go
290 case enumspb.TASK_QUEUE_TYPE_NEXUS:
291 resp, err := fwdr.client.PollNexusTaskQueue(ctx, &matchingservice.PollNexusTaskQueueRequest{
go.temporal.io/server/api/matchingservicemock/v1/service_grpc.pb.mock.go 13 introduced LOC · 3 ranges

Open complete file

564
565 // PollActivityTaskQueue mocks base method.
566 > func (m *MockMatchingServiceClient) PollActivityTaskQueue(ctx context.Context, in *matchingservice.PollActivityTaskQueueRequest, opts ...grpc.CallOption) (*matchingservice.PollActivityTaskQueueResponse, error) { service_grpc.pb.mock.go
567 > m.ctrl.T.Helper()
568 > varargs := []any{ctx, in}
569 > for _, a := range opts {
570 varargs = append(varargs, a)
571 }
572 > ret := m.ctrl.Call(m, "PollActivityTaskQueue", varargs...) service_grpc.pb.mock.go
573 > ret0, _ := ret[0].(*matchingservice.PollActivityTaskQueueResponse)
574 > ret1, _ := ret[1].(error)
575 > return ret0, ret1
576 }
577
578 // PollActivityTaskQueue indicates an expected call of PollActivityTaskQueue.
579 > func (mr *MockMatchingServiceClientMockRecorder) PollActivityTaskQueue(ctx, in any, opts ...any) *gomock.Call { service_grpc.pb.mock.go
580 > mr.mock.ctrl.T.Helper()
581 > varargs := append([]any{ctx, in}, opts...)
582 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PollActivityTaskQueue", reflect.TypeOf((*MockMatchingServiceClient)(nil).PollActivityTaskQueue), varargs...)
583 > }
584
585 // PollNexusTaskQueue mocks base method.