mutable_state_mock.go ×2

Frontier kind: Joint frontier

unlabeled · c_645205f19f7c

2 tests · 4171 LOC · 190 files · introduces 1 test · 26 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges26 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
598 ranges4171 lines · 190 files · Browse complete extent
All tests (intent)
2 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: 26 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/ndc/workflow_resetter.go 14 introduced LOC · 1 range

Open complete file

598 var err error
599 if workflowTask.StartedEventID == common.EmptyVersion {
600 > _, workflowTask, err = resetMutableState.AddWorkflowTaskStartedEvent( workflow_resetter.go
601 > workflowTask.ScheduledEventID,
602 > workflowTask.RequestID,
603 > workflowTask.TaskQueue,
604 > consts.IdentityHistoryService,
605 > nil,
606 > nil,
607 > nil,
608 > // skipping versioning checks because this task is not actually dispatched but will fail immediately.
609 > true,
610 > nil,
611 > -1, // sentinel: synthetic event, no routing info
612 > )
613 > if err != nil {
614 return err
615 }
go.temporal.io/server/service/history/interfaces/mutable_state_mock.go 12 introduced LOC · 2 ranges

Open complete file

949
950 // AddWorkflowTaskStartedEvent mocks base method.
951 > func (m *MockMutableState) AddWorkflowTaskStartedEvent(arg0 int64, arg1 string, arg2 *taskqueue.TaskQueue, arg3 string, arg4 *common.WorkerVersionStamp, arg5 *taskqueue0.BuildIdRedirectInfo, arg6 update0.Registry, arg7 bool, arg8 *deployment.WorkerDeploymentVersion, arg9 int64) (*history.HistoryEvent, *WorkflowTaskInfo, error) { mutable_state_mock.go
952 > m.ctrl.T.Helper()
953 > ret := m.ctrl.Call(m, "AddWorkflowTaskStartedEvent", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
954 > ret0, _ := ret[0].(*history.HistoryEvent)
955 > ret1, _ := ret[1].(*WorkflowTaskInfo)
956 > ret2, _ := ret[2].(error)
957 > return ret0, ret1, ret2
958 > }
959
960 // AddWorkflowTaskStartedEvent indicates an expected call of AddWorkflowTaskStartedEvent.
961 > func (mr *MockMutableStateMockRecorder) AddWorkflowTaskStartedEvent(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 any) *gomock.Call { mutable_state_mock.go
962 > mr.mock.ctrl.T.Helper()
963 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddWorkflowTaskStartedEvent", reflect.TypeOf((*MockMutableState)(nil).AddWorkflowTaskStartedEvent), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
964 > }
965
966 // AddWorkflowTaskTimedOutEvent mocks base method.