workflow_context_mock.go ×5

Frontier kind: Code frontier

unlabeled · c_868b29b4fb8e

11 tests · 4308 LOC · 187 files · introduces 0 tests · 27 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges27 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
661 ranges4308 lines · 187 files · Browse complete extent
All tests (intent)
11 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.

3 files ranked by introduced lines: 27 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/interfaces/workflow_context_mock.go 22 introduced LOC · 5 ranges

Open complete file

155
156 // IsDirty indicates an expected call of IsDirty.
157 > func (mr *MockWorkflowContextMockRecorder) IsDirty() *gomock.Call { workflow_context_mock.go
158 > mr.mock.ctrl.T.Helper()
159 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsDirty", reflect.TypeOf((*MockWorkflowContext)(nil).IsDirty))
160 > }
161
162 // LoadExecutionStats mocks base method.
191
192 // Lock mocks base method.
193 > func (m *MockWorkflowContext) Lock(ctx context.Context, lockPriority locks.Priority) error { workflow_context_mock.go
194 > m.ctrl.T.Helper()
195 > ret := m.ctrl.Call(m, "Lock", ctx, lockPriority)
196 > ret0, _ := ret[0].(error)
197 > return ret0
198 > }
199
200 // Lock indicates an expected call of Lock.
201 > func (mr *MockWorkflowContextMockRecorder) Lock(ctx, lockPriority any) *gomock.Call { workflow_context_mock.go
202 > mr.mock.ctrl.T.Helper()
203 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lock", reflect.TypeOf((*MockWorkflowContext)(nil).Lock), ctx, lockPriority)
204 > }
205
206 // PersistWorkflowEvents mocks base method.
281
282 // Unlock mocks base method.
283 > func (m *MockWorkflowContext) Unlock() { workflow_context_mock.go
284 > m.ctrl.T.Helper()
285 > m.ctrl.Call(m, "Unlock")
286 > }
287
288 // Unlock indicates an expected call of Unlock.
289 > func (mr *MockWorkflowContextMockRecorder) Unlock() *gomock.Call { workflow_context_mock.go
290 > mr.mock.ctrl.T.Helper()
291 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unlock", reflect.TypeOf((*MockWorkflowContext)(nil).Unlock))
292 > }
293
294 // UpdateRegistry mocks base method.
go.temporal.io/server/service/history/workflow/cache/export_testing.go 4 introduced LOC · 1 range

Open complete file

14 // PutContextIfNotExist puts the given workflow Context into the cache, if it doens't already exist.
15 // Exported for testing purposes.
16 > func PutContextIfNotExist(cache Cache, key Key, value historyi.WorkflowContext) error { export_testing.go
17 > _, err := cache.(*cacheImpl).PutIfNotExist(key, &cacheItem{wfContext: value})
18 > return err
19 > }
20
21 // ClearMutableState clears cached mutable state for the given key to
go.temporal.io/server/service/history/workflow/cache/cache.go 1 introduced LOC · 1 range

Open complete file

481 return sg.CacheSize()
482 }
483 > return 0 cache.go
484 }