service_grpc.pb.mock.go ×3

Frontier kind: Joint frontier

unlabeled · c_ace9a284f8db

1 test · 3811 LOC · 197 files · introduces 1 test · 30 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges30 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
551 ranges3811 lines · 197 files · Browse complete extent
All tests (intent)
1 testBrowse 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: 30 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/frontend/workflow_handler.go 17 introduced LOC · 2 ranges

Open complete file

6630 }
6631
6632 > func (wh *WorkflowHandler) historyArchived(ctx context.Context, request *workflowservice.GetWorkflowExecutionHistoryRequest, namespaceID namespace.ID) bool { workflow_handler.go
6633 > if request.GetExecution() == nil || request.GetExecution().GetRunId() == "" {
6634 > return false
6635 > }
6636 > getMutableStateRequest := &historyservice.GetMutableStateRequest{
6637 > NamespaceId: namespaceID.String(),
6638 > Execution: request.Execution,
6639 > }
6640 > _, err := wh.historyClient.GetMutableState(ctx, getMutableStateRequest)
6641 > if err == nil {
6642 > return false
6643 > }
6644 > switch err.(type) {
6645 > case *serviceerror.NotFound:
6646 > // the only case in which history is assumed to be archived is if getting mutable state returns entity not found error
6647 > return true
6648 }
6649
6650 > return false workflow_handler.go
6651 }
6652
go.temporal.io/server/api/historyservicemock/v1/service_grpc.pb.mock.go 13 introduced LOC · 3 ranges

Open complete file

425
426 // GetMutableState mocks base method.
427 > func (m *MockHistoryServiceClient) GetMutableState(ctx context.Context, in *historyservice.GetMutableStateRequest, opts ...grpc.CallOption) (*historyservice.GetMutableStateResponse, error) { service_grpc.pb.mock.go
428 > m.ctrl.T.Helper()
429 > varargs := []any{ctx, in}
430 > for _, a := range opts {
431 varargs = append(varargs, a)
432 }
433 > ret := m.ctrl.Call(m, "GetMutableState", varargs...) service_grpc.pb.mock.go
434 > ret0, _ := ret[0].(*historyservice.GetMutableStateResponse)
435 > ret1, _ := ret[1].(error)
436 > return ret0, ret1
437 }
438
439 // GetMutableState indicates an expected call of GetMutableState.
440 > func (mr *MockHistoryServiceClientMockRecorder) GetMutableState(ctx, in any, opts ...any) *gomock.Call { service_grpc.pb.mock.go
441 > mr.mock.ctrl.T.Helper()
442 > varargs := append([]any{ctx, in}, opts...)
443 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMutableState", reflect.TypeOf((*MockHistoryServiceClient)(nil).GetMutableState), varargs...)
444 > }
445
446 // GetReplicationMessages mocks base method.