interface_mock.go ×3

Frontier kind: Joint frontier

unlabeled · c_af0b62fb365e

5 tests · 2678 LOC · 137 files · introduces 1 test · 39 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges39 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
424 ranges2678 lines · 137 files · Browse complete extent
All tests (intent)
5 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: 39 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/archival/archiver.go 27 introduced LOC · 3 ranges

Open complete file

154
155 switch target {
156 > case TargetHistory: archiver.go
157 > go func() {
158 > defer wg.Done()
159 >
160 > errs[i] = a.archiveHistory(ctx, request, logger)
161 > }()
162 case TargetVisibility:
163 go func() {
176 }
177
178 > func (a *archiver) archiveHistory(ctx context.Context, request *Request, logger log.Logger) (err error) { archiver.go
179 > logger = log.With(
180 > logger,
181 > tag.ArchivalRequestBranchToken(request.BranchToken),
182 > tag.ArchivalRequestCloseFailoverVersion(request.CloseFailoverVersion),
183 > tag.ArchivalURI(request.HistoryURI.String()),
184 > )
185 > defer a.recordArchiveTargetResult(logger, time.Now(), TargetHistory, &err)
186 >
187 > historyArchiver, err := a.archiverProvider.GetHistoryArchiver(request.HistoryURI.Scheme())
188 > if err != nil {
189 return err
190 }
191
192 > return historyArchiver.Archive(ctx, request.HistoryURI, &carchiver.ArchiveHistoryRequest{ archiver.go
193 > ShardID: request.ShardID,
194 > NamespaceID: request.NamespaceID,
195 > Namespace: request.Namespace,
196 > WorkflowID: request.WorkflowID,
197 > RunID: request.RunID,
198 > BranchToken: request.BranchToken,
199 > NextEventID: request.NextEventID,
200 > CloseFailoverVersion: request.CloseFailoverVersion,
201 > })
202 }
203
go.temporal.io/server/common/archiver/interface_mock.go 12 introduced LOC · 3 ranges

Open complete file

44
45 // Archive mocks base method.
46 > func (m *MockHistoryArchiver) Archive(ctx context.Context, uri URI, request *ArchiveHistoryRequest, opts ...ArchiveOption) error { interface_mock.go
47 > m.ctrl.T.Helper()
48 > varargs := []any{ctx, uri, request}
49 > for _, a := range opts {
50 varargs = append(varargs, a)
51 }
52 > ret := m.ctrl.Call(m, "Archive", varargs...) interface_mock.go
53 > ret0, _ := ret[0].(error)
54 > return ret0
55 }
56
57 // Archive indicates an expected call of Archive.
58 > func (mr *MockHistoryArchiverMockRecorder) Archive(ctx, uri, request any, opts ...any) *gomock.Call { interface_mock.go
59 > mr.mock.ctrl.T.Helper()
60 > varargs := append([]any{ctx, uri, request}, opts...)
61 > return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Archive", reflect.TypeOf((*MockHistoryArchiver)(nil).Archive), varargs...)
62 > }
63
64 // Get mocks base method.