context.go ×2

Frontier kind: Joint frontier

unlabeled · c_9c55d04e025d

2 tests · 4339 LOC · 183 files · introduces 1 test · 14 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges14 lines · 3 files
Tests
1 test

Contains — complete concept membership

All code (extent)
692 ranges4339 lines · 183 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.

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

go.temporal.io/server/service/history/interfaces/mutable_state_mock.go 6 introduced LOC · 1 range

Open complete file

2109
2110 // GetApproximatePersistedSize mocks base method.
2111 > func (m *MockMutableState) GetApproximatePersistedSize() int { mutable_state_mock.go
2112 > m.ctrl.T.Helper()
2113 > ret := m.ctrl.Call(m, "GetApproximatePersistedSize")
2114 > ret0, _ := ret[0].(int)
2115 > return ret0
2116 > }
2117
2118 // GetApproximatePersistedSize indicates an expected call of GetApproximatePersistedSize.
go.temporal.io/server/service/history/workflow/context.go 6 introduced LOC · 2 ranges

Open complete file

1422 return 1
1423 }
1424 > size := len(c.workflowKey.WorkflowID) + len(c.workflowKey.RunID) + len(c.workflowKey.NamespaceID) context.go
1425 > if c.MutableState != nil {
1426 > size += c.MutableState.GetApproximatePersistedSize()
1427 > }
1428 > if c.updateRegistry != nil {
1429 size += c.updateRegistry.GetSize()
1430 }
1431 > return size context.go
1432 }
1433
go.temporal.io/server/service/history/workflow/cache/cache.go 2 introduced LOC · 1 range

Open complete file

98 maxSize := config.HistoryHostLevelCacheMaxSize()
99 if config.HistoryCacheLimitSizeBased {
100 > maxSize = config.HistoryHostLevelCacheMaxSizeBytes() cache.go
101 > }
102 opts := &cache.Options{
103 TTL: config.HistoryCacheTTL(),