convert.go ×4

Frontier kind: Joint frontier

unlabeled · c_a76c6309b8e9

8 tests · 2520 LOC · 127 files · introduces 1 test · 18 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges18 lines · 2 files
Tests
1 test

Contains — complete concept membership

All code (extent)
377 ranges2520 lines · 127 files · Browse complete extent
All tests (intent)
8 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: 18 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/queues/convert.go 13 introduced LOC · 4 ranges

Open complete file

105 ) *persistencespb.Predicate {
106 switch predicate := predicate.(type) {
107 > case *predicates.UniversalImpl[tasks.Task]: convert.go
108 > return ToPersistenceUniversalPredicate(predicate)
109 case *predicates.EmptyImpl[tasks.Task]:
110 return ToPersistenceEmptyPredicate(predicate)
134 ) tasks.Predicate {
135 switch predicate.GetPredicateType() {
136 > case enumsspb.PREDICATE_TYPE_UNIVERSAL: convert.go
137 > return FromPersistenceUniversalPredicate(predicate.GetUniversalPredicateAttributes())
138 case enumsspb.PREDICATE_TYPE_EMPTY:
139 return FromPersistenceEmptyPredicate(predicate.GetEmptyPredicateAttributes())
161 func ToPersistenceUniversalPredicate(
162 _ *predicates.UniversalImpl[tasks.Task],
163 > ) *persistencespb.Predicate { convert.go
164 > return &persistencespb.Predicate{
165 > PredicateType: enumsspb.PREDICATE_TYPE_UNIVERSAL,
166 > Attributes: &persistencespb.Predicate_UniversalPredicateAttributes{},
167 > }
168 > }
169
170 func FromPersistenceUniversalPredicate(
171 _ *persistencespb.UniversalPredicateAttributes,
172 > ) tasks.Predicate { convert.go
173 > return predicates.Universal[tasks.Task]()
174 > }
175
176 func ToPersistenceEmptyPredicate(
go.temporal.io/server/api/persistence/v1/predicates.pb.go 5 introduced LOC · 1 range

Open complete file

88 }
89
90 > func (x *Predicate) GetUniversalPredicateAttributes() *UniversalPredicateAttributes { predicates.pb.go
91 > if x != nil {
92 > if x, ok := x.Attributes.(*Predicate_UniversalPredicateAttributes); ok {
93 > return x.UniversalPredicateAttributes
94 > }
95 }
96 return nil