shard_context_mock.go ×4

Frontier kind: Joint frontier

unlabeled · c_e1fe98a70f37

3 tests · 3786 LOC · 167 files · introduces 1 test · 30 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges30 lines · 2 files
Tests
1 test

Contains — complete concept membership

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

go.temporal.io/server/service/history/interfaces/shard_context_mock.go 16 introduced LOC · 4 ranges

Open complete file

904
905 // NewMockControllableContext creates a new mock instance.
906 > func NewMockControllableContext(ctrl *gomock.Controller) *MockControllableContext { shard_context_mock.go
907 > mock := &MockControllableContext{ctrl: ctrl}
908 > mock.recorder = &MockControllableContextMockRecorder{mock}
909 > return mock
910 > }
911
912 // EXPECT returns an object that allows the caller to indicate expected use.
913 > func (m *MockControllableContext) EXPECT() *MockControllableContextMockRecorder { shard_context_mock.go
914 > return m.recorder
915 > }
916
917 // AddSpeculativeWorkflowTaskTimeoutTask mocks base method.
1087
1088 // FinishStop mocks base method.
1089 > func (m *MockControllableContext) FinishStop() { shard_context_mock.go
1090 > m.ctrl.T.Helper()
1091 > m.ctrl.Call(m, "FinishStop")
1092 > }
1093
1094 // FinishStop indicates an expected call of FinishStop.
1095 > func (mr *MockControllableContextMockRecorder) FinishStop() *gomock.Call { shard_context_mock.go
1096 > mr.mock.ctrl.T.Helper()
1097 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "FinishStop", reflect.TypeOf((*MockControllableContext)(nil).FinishStop))
1098 > }
1099
1100 // GenerateTaskID mocks base method.
go.temporal.io/server/service/history/shard/context_factory_mock.go 14 introduced LOC · 3 ranges

Open complete file

37
38 // EXPECT returns an object that allows the caller to indicate expected use.
39 > func (m *MockContextFactory) EXPECT() *MockContextFactoryMockRecorder { context_factory_mock.go
40 > return m.recorder
41 > }
42
43 // CreateContext mocks base method.
44 > func (m *MockContextFactory) CreateContext(shardID int32, closeCallback CloseCallback) (interfaces.ControllableContext, error) { context_factory_mock.go
45 > m.ctrl.T.Helper()
46 > ret := m.ctrl.Call(m, "CreateContext", shardID, closeCallback)
47 > ret0, _ := ret[0].(interfaces.ControllableContext)
48 > ret1, _ := ret[1].(error)
49 > return ret0, ret1
50 > }
51
52 // CreateContext indicates an expected call of CreateContext.
53 > func (mr *MockContextFactoryMockRecorder) CreateContext(shardID, closeCallback any) *gomock.Call { context_factory_mock.go
54 > mr.mock.ctrl.T.Helper()
55 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateContext", reflect.TypeOf((*MockContextFactory)(nil).CreateContext), shardID, closeCallback)
56 > }