event_gen.go ×2

Frontier kind: Code frontier

unlabeled · c_c6d567d681e2

5 tests · 4660 LOC · 202 files · introduces 0 tests · 26 LOC · 5 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges26 lines · 5 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
780 ranges4660 lines · 202 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.

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.

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

go.temporal.io/server/common/searchattribute/event_gen.go 7 introduced LOC · 2 ranges

Open complete file

8 )
9
10 > func SetToEvent(event *historypb.HistoryEvent, sas *commonpb.SearchAttributes) bool { event_gen.go
11 > switch e := event.GetAttributes().(type) {
12 case *historypb.HistoryEvent_StartChildWorkflowExecutionInitiatedEventAttributes:
13 e.StartChildWorkflowExecutionInitiatedEventAttributes.SearchAttributes = sas
19 e.WorkflowExecutionContinuedAsNewEventAttributes.SearchAttributes = sas
20 return true
21 > case *historypb.HistoryEvent_WorkflowExecutionStartedEventAttributes: event_gen.go
22 > e.WorkflowExecutionStartedEventAttributes.SearchAttributes = sas
23 > return true
24 > default:
25 > return false
26 }
27 }
go.temporal.io/server/common/searchattribute/mapper_mock.go 7 introduced LOC · 1 range

Open complete file

57
58 // GetFieldName mocks base method.
59 > func (m *MockMapper) GetFieldName(alias, arg1 string) (string, error) { mapper_mock.go
60 > m.ctrl.T.Helper()
61 > ret := m.ctrl.Call(m, "GetFieldName", alias, arg1)
62 > ret0, _ := ret[0].(string)
63 > ret1, _ := ret[1].(error)
64 > return ret0, ret1
65 > }
66
67 // GetFieldName indicates an expected call of GetFieldName.
go.temporal.io/server/service/frontend/admin_handler.go 6 introduced LOC · 2 ranges

Open complete file

738 continue
739 }
740 > hasSas = true admin_handler.go
741 >
742 > unaliasedSas, err := searchattribute.UnaliasFields(adh.saMapperProvider, sas, nsName.String())
743 > if err != nil {
744 var invArgErr *serviceerror.InvalidArgument
745 if !errors.As(err, &invArgErr) {
751 }
752 // Now validate that search attributes are valid.
753 > err = adh.saValidator.Validate(unaliasedSas, nsName.String()) admin_handler.go
754 > if err != nil {
755 return nil, err
756 }
go.temporal.io/server/common/testing/testvars/any.go 3 introduced LOC · 1 range

Open complete file

29 }
30
31 > func (a Any) Payload() *commonpb.Payload { any.go
32 > return payload.EncodeString(a.String())
33 > }
34
35 func (a Any) Payloads() *commonpb.Payloads {
go.temporal.io/server/common/testing/testvars/test_vars.go 3 introduced LOC · 1 range

Open complete file

427 }
428
429 > func (tv *TestVars) IndexName() string { test_vars.go
430 > return getOrCreate(tv, "index_name", tv.uniqueString, tv.stringNSetter)
431 > }
432
433 func (tv *TestVars) Service() string {