chasm_tree_mock.go ×5

Frontier kind: Joint frontier

unlabeled · c_283793e9476c

1 test · 5097 LOC · 204 files · introduces 1 test · 36 LOC · 4 files

Introduces — evidence that enters the hierarchy at this concept

Code
11 ranges36 lines · 4 files
Tests
1 test

Contains — complete concept membership

All code (extent)
879 ranges5097 lines · 204 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.

4 files ranked by introduced lines: 36 introduced LOC across 11 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/interfaces/chasm_tree_mock.go 25 introduced LOC · 5 ranges

Open complete file

117
118 // CloseTransaction mocks base method.
119 > func (m *MockChasmTree) CloseTransaction() (chasm.NodesMutation, error) { chasm_tree_mock.go
120 > m.ctrl.T.Helper()
121 > ret := m.ctrl.Call(m, "CloseTransaction")
122 > ret0, _ := ret[0].(chasm.NodesMutation)
123 > ret1, _ := ret[1].(error)
124 > return ret0, ret1
125 > }
126
127 // CloseTransaction indicates an expected call of CloseTransaction.
128 > func (mr *MockChasmTreeMockRecorder) CloseTransaction() *gomock.Call { chasm_tree_mock.go
129 > mr.mock.ctrl.T.Helper()
130 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloseTransaction", reflect.TypeOf((*MockChasmTree)(nil).CloseTransaction))
131 > }
132
133 // Component mocks base method.
212
213 // IsDirty indicates an expected call of IsDirty.
214 > func (mr *MockChasmTreeMockRecorder) IsDirty() *gomock.Call { chasm_tree_mock.go
215 > mr.mock.ctrl.T.Helper()
216 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsDirty", reflect.TypeOf((*MockChasmTree)(nil).IsDirty))
217 > }
218
219 // IsStale mocks base method.
232
233 // IsStateDirty mocks base method.
234 > func (m *MockChasmTree) IsStateDirty() bool { chasm_tree_mock.go
235 > m.ctrl.T.Helper()
236 > ret := m.ctrl.Call(m, "IsStateDirty")
237 > ret0, _ := ret[0].(bool)
238 > return ret0
239 > }
240
241 // IsStateDirty indicates an expected call of IsStateDirty.
242 > func (mr *MockChasmTreeMockRecorder) IsStateDirty() *gomock.Call { chasm_tree_mock.go
243 > mr.mock.ctrl.T.Helper()
244 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsStateDirty", reflect.TypeOf((*MockChasmTree)(nil).IsStateDirty))
245 > }
246
247 // PartitionedSnapshot mocks base method.
go.temporal.io/server/service/history/workflow/mutable_state_impl.go 6 introduced LOC · 3 ranges

Open complete file

7490
7491 if result.skipPersistence {
7492 > if err := ms.cleanupTransaction(); err != nil { mutable_state_impl.go
7493 return nil, nil, err
7494 }
7495 > return nil, nil, nil mutable_state_impl.go
7496 }
7497
7725
7726 if ms.closeTransactionShouldSkipPersistence(isStateDirty, chasmNodesMutation) {
7727 > return closeTransactionResult{ mutable_state_impl.go
7728 > skipPersistence: true,
7729 > }, nil
7730 > }
7731
7732 for nodePath := range chasmNodesMutation.DeletedNodes {
go.temporal.io/server/chasm/tree.go 3 introduced LOC · 1 range

Open complete file

255
256 // IsEmpty reports whether the mutation contains no node updates or deletions.
257 > func (m NodesMutation) IsEmpty() bool { tree.go
258 > return len(m.UpdatedNodes) == 0 && len(m.DeletedNodes) == 0
259 > }
260
261 // NewTreeFromDB creates a new in-memory CHASM tree from a collection of flattened persistence CHASM nodes.
go.temporal.io/server/service/history/workflow/context.go 2 introduced LOC · 2 ranges

Open complete file

813
814 if updateWorkflow == nil {
815 > if newWorkflow != nil || len(newWorkflowEventsSeq) != 0 { context.go
816 return serviceerror.NewInternal("current workflow mutation skipped with new workflow snapshot")
817 }
818 > return nil context.go
819 }
820