service_grpc.pb.mock.go ×3

Frontier kind: Code frontier

unlabeled · c_0e667e982bcd

5 tests · 2237 LOC · 109 files · introduces 0 tests · 24 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges24 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
335 ranges2237 lines · 109 files · Browse complete extent
All tests (intent)
5 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: 24 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/testing/mockapi/workflowservicemock/v1/service_grpc.pb.mock.go 13 introduced LOC · 3 ranges

Open complete file

844
845 // GetWorkflowExecutionHistoryReverse mocks base method.
846 > func (m *MockWorkflowServiceClient) GetWorkflowExecutionHistoryReverse(ctx context.Context, in *workflowservice.GetWorkflowExecutionHistoryReverseRequest, opts ...grpc.CallOption) (*workflowservice.GetWorkflowExecutionHistoryReverseResponse, error) { service_grpc.pb.mock.go
847 > m.ctrl.T.Helper()
848 > varargs := []any{ctx, in}
849 > for _, a := range opts {
850 varargs = append(varargs, a)
851 }
852 > ret := m.ctrl.Call(m, "GetWorkflowExecutionHistoryReverse", varargs...) service_grpc.pb.mock.go
853 > ret0, _ := ret[0].(*workflowservice.GetWorkflowExecutionHistoryReverseResponse)
854 > ret1, _ := ret[1].(error)
855 > return ret0, ret1
856 }
857
858 // GetWorkflowExecutionHistoryReverse indicates an expected call of GetWorkflowExecutionHistoryReverse.
859 > func (mr *MockWorkflowServiceClientMockRecorder) GetWorkflowExecutionHistoryReverse(ctx, in any, opts ...any) *gomock.Call { service_grpc.pb.mock.go
860 > mr.mock.ctrl.T.Helper()
861 > varargs := append([]any{ctx, in}, opts...)
862 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkflowExecutionHistoryReverse", reflect.TypeOf((*MockWorkflowServiceClient)(nil).GetWorkflowExecutionHistoryReverse), varargs...)
863 > }
864
865 // ListActivityExecutions mocks base method.
go.temporal.io/server/service/worker/batcher/activities.go 11 introduced LOC · 2 ranges

Open complete file

1059 frontendClient workflowservice.WorkflowServiceClient,
1060 logger log.Logger,
1061 > ) (workflowTaskEventID int64, err error) { activities.go
1062 > req := &workflowservice.GetWorkflowExecutionHistoryReverseRequest{
1063 > Namespace: namespaceStr,
1064 > Execution: workflowExecution,
1065 > MaximumPageSize: 1000,
1066 > NextPageToken: nil,
1067 > }
1068 > for {
1069 > resp, err := frontendClient.GetWorkflowExecutionHistoryReverse(ctx, req)
1070 > if err != nil {
1071 logger.Error("failed to run GetWorkflowExecutionHistoryReverse", tag.Error(err))
1072 return 0, errors.New("failed to get workflow execution history")
1073 }
1074 > for _, e := range resp.GetHistory().GetEvents() { activities.go
1075 switch e.GetEventType() {
1076 case enumspb.EVENT_TYPE_WORKFLOW_TASK_COMPLETED: