service_grpc.pb.mock.go ×3

Frontier kind: Code frontier

unlabeled · c_c71282a71ebe

6 tests · 2184 LOC · 109 files · introduces 0 tests · 22 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges22 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
324 ranges2184 lines · 109 files · Browse complete extent
All tests (intent)
6 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: 22 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

584
585 // DescribeWorkflowExecution mocks base method.
586 > func (m *MockWorkflowServiceClient) DescribeWorkflowExecution(ctx context.Context, in *workflowservice.DescribeWorkflowExecutionRequest, opts ...grpc.CallOption) (*workflowservice.DescribeWorkflowExecutionResponse, error) { service_grpc.pb.mock.go
587 > m.ctrl.T.Helper()
588 > varargs := []any{ctx, in}
589 > for _, a := range opts {
590 varargs = append(varargs, a)
591 }
592 > ret := m.ctrl.Call(m, "DescribeWorkflowExecution", varargs...) service_grpc.pb.mock.go
593 > ret0, _ := ret[0].(*workflowservice.DescribeWorkflowExecutionResponse)
594 > ret1, _ := ret[1].(error)
595 > return ret0, ret1
596 }
597
598 // DescribeWorkflowExecution indicates an expected call of DescribeWorkflowExecution.
599 > func (mr *MockWorkflowServiceClientMockRecorder) DescribeWorkflowExecution(ctx, in any, opts ...any) *gomock.Call { service_grpc.pb.mock.go
600 > mr.mock.ctrl.T.Helper()
601 > varargs := append([]any{ctx, in}, opts...)
602 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DescribeWorkflowExecution", reflect.TypeOf((*MockWorkflowServiceClient)(nil).DescribeWorkflowExecution), varargs...)
603 > }
604
605 // DescribeWorkflowRule mocks base method.
go.temporal.io/server/service/worker/batcher/activities.go 9 introduced LOC · 2 ranges

Open complete file

1141 buildId string,
1142 currentRunOnly bool,
1143 > ) (workflowTaskEventID int64, err error) { activities.go
1144 > res, err := frontendClient.DescribeWorkflowExecution(ctx, &workflowservice.DescribeWorkflowExecutionRequest{
1145 > Namespace: namespaceStr,
1146 > Execution: execution,
1147 > })
1148 > if err != nil {
1149 return 0, err
1150 }
1151 > resetPoints := res.GetWorkflowExecutionInfo().GetAutoResetPoints().GetPoints() activities.go
1152 > for _, point := range resetPoints {
1153 > if point.BuildId == buildId {
1154 if !point.Resettable {
1155 return 0, fmt.Errorf("Reset point for %v is not resettable", buildId)